Part Number Hot Search : 
LT425 UPD6134 364721 N54901K 0PQ10 HEF45 CI9050 74VHC1
Product Description
Full Text Search
 

To Download CS4201 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 CS4201
CrystalClear Audio Codec '97 with Headphone Amplifier
Features
l Integrated
High-Performance Headphone Amplifier l On-chip PLL for use with External Clock Sources l Sample Rate Converters l S/PDIF Digital Audio Output l AC '97 2.1 Compliant l 20-bit Stereo Digital-to-Analog Converters l 18-bit Stereo Analog-to-Digital Converters l Three Analog Line-level Stereo Inputs for LINE IN, VIDEO, and AUX l Two Analog Line-level Mono Inputs for Modem and PC Beep l Dual Microphone Inputs l High Quality Pseudo-Differential CD Input l Integrated High-Performance Microphone Pre-Amplifier l Separate Stereo Line-level Output l Extensive Power Management Support
or Exceeds the Microsoft PC 99 and PC 2001 Audio Performance Requirements l CrystalClear 3D Stereo Enhancement l I2S Serial Digital Outputs Enable Cost Effective Six Channel Applications
l Meets
Description
The CS4201 is an AC '97 2.1 compliant stereo audio codec designed for PC multimedia systems. It uses industry leading CrystalClear delta-sigma and mixed signal technology. This advanced technology and these features are designed to help enable the design of PC 99 and PC 2001 compliant high-quality audio systems for desktop, portable, and entertainment PCs. Coupling the CS4201 with a PCI audio accelerator or core logic supporting the AC '97 interface, implements a cost effective, superior quality audio solution. The CS4201 surpasses PC 99, PC 2001, and AC '97 2.1 audio quality standards. ORDERING INFO CS4201-JQ 48-pin TQFP
9x9x1.4 mm
AC-LINK AND AC '97 REGISTERS
ANALOG INPUT MUX AND OUTPUT MIXER
TEST
PWR MGT SRC
SYNC BIT_CLK SDATA_OUT SDATA_IN RESET# ID0# ID1#
PCM_DATA
18 bit ADC
INPUT MUX
LINE CD AUX VIDEO MIC1 MIC2 PHONE PC_BEEP
ACLINK INPUT MIXER
GAIN / MUTE CONTROLS MIXER / MUX SELECTS
AC'97 REGISTERS
3D Stereo Enhancement OUTPUT MIXER
GPIO0/LRCLK GPIO1/SDOUT EAPD/SCLK SPDO/SDO2
GPIO, S/PDIF SERIAL DATA PORT
SRC
PCM_DATA
20 bit DAC
LINE_OUT HP_OUT MONO_OUT
Preliminary Product Information
P.O. Box 17847, Austin, Texas 78760 (512) 445 7222 FAX: (512) 445 7581 http://www.cirrus.com
This document contains information for a new product. Cirrus Logic reserves the right to modify this product without notice.
Copyright Cirrus Logic, Inc. 2001 (All Rights Reserved)
APR `01 DS483PP3 1
CS4201
TABLE OF CONTENTS
1. CHARACTERISTICS AND SPECIFICATIONS ..................................................................7 Analog Characteristics ........................................................................................................7 Absolute Maximum Ratings ................................................................................................8 Recommended Operating Conditions.................................................................................8 AC '97 Serial Port Timing..................................................................................................10 2. GENERAL DESCRIPTION ...............................................................................................13 2.1 AC-Link ......................................................................................................................13 2.2 Control Registers .......................................................................................................14 2.3 Sample Rate Converters ...........................................................................................14 2.4 Mixers ........................................................................................................................14 2.5 Input Mux ...................................................................................................................14 2.6 Volume Control ..........................................................................................................14 3. AC-LINK FRAME DEFINITION ........................................................................................16 3.1 AC-Link Serial Data Output Frame ............................................................................17 3.1.1 Serial Data Output Slot Tags (Slot 0) ...........................................................17 3.1.2 Command Address Port (Slot 1) ..................................................................17 3.1.3 Command Data Port (Slot 2) ........................................................................18 3.1.4 PCM Playback Data (Slots 3-11) .................................................................18 3.1.5 GPIO Pin Control (Slot12) ............................................................................18 3.2 AC-Link Serial Data Input Frame ..............................................................................19 3.2.1 Serial Data Input Slot Tag Bits (Slot 0) ......................................................19 3.2.2 Status Address Port (Slot 1) .........................................................................19 3.2.3 Status Data Port (Slot 2) ..............................................................................20 3.2.4 PCM Capture Data (Slot 3-8) .......................................................................20 3.2.5 GPIO Pin Status (Slot 12) ...........................................................................20 3.3 AC-Link Protocol Violation - Loss of SYNC ...............................................................21 4. REGISTER INTERFACE .............................................................................................22 4.1 Reset Register (Index 00h) ......................................................................................23 4.2 Analog Mixer Output Volume Registers (Index 02h - 04h) ......................................23 4.3 Mono Volume Register (Index 06h) ..........................................................................24 4.4 PC_BEEP Volume Register (Index 0Ah) ..................................................................24 4.5 Phone Volume Register (Index 0Ch) ........................................................................24 4.6 Microphone Volume Register (Index 0Eh) ................................................................25 4.7 Analog Mixer Input Gain Registers (Index 10h - 18h) ...............................................26 4.8 Input Mux Select Register (Index 1Ah) .....................................................................27
Contacting Cirrus Logic Support
For a complete listing of Direct Sales, Distributor, and Sales Representative contacts, visit the Cirrus Logic web site at: http://www.cirrus.com/corporate/contacts/sales.cfm
Microsoft is a registered trademark of Microsoft Corporation in the United States and/or other countries. Intel is a registered trademark of Intel Corporation. CrystalClear is a registered trademark of Cirrus Logic. Preliminary product information describes products which are in production, but for which full characterization data is not yet available. Advance product information describes products which are in development and subject to development changes. Cirrus Logic, Inc. has made best efforts to ensure that the information contained in this document is accurate and reliable. However, the information is subject to change without notice and is provided "AS IS" without warranty of any kind (express or implied). No responsibility is assumed by Cirrus Logic, Inc. for the use of this information, nor for infringements of patents or other rights of third parties. This document is the property of Cirrus Logic, Inc. and implies no license under patents, copyrights, trademarks, or trade secrets. No part of this publication may be copied, reproduced, stored in a retrieval system, or transmitted, in any form or by any means (electronic, mechanical, photographic, or otherwise) without the prior written consent of Cirrus Logic, Inc. Items from any Cirrus Logic website or disk may be printed for use by the user. However, no part of the printout or electronic files may be copied, reproduced, stored in a retrieval system, or transmitted, in any form or by any means (electronic, mechanical, photographic, or otherwise) without the prior written consent of Cirrus Logic, Inc.Furthermore, no part of this publication may be used as a basis for manufacture or sale of any items without the prior written consent of Cirrus Logic, Inc. The names of products of Cirrus Logic, Inc. or other vendors and suppliers appearing in this document may be trademarks or service marks of their respective owners which may be registered in some jurisdictions. A list of Cirrus Logic, Inc. trademarks and service marks can be found at http://www.cirrus.com.
2
DS483PP3
CS4201
4.9 Record Gain Register (Index 1Ch) ........................................................................... 27 4.10 General Purpose Register (Index 20h) ................................................................. 28 4.11 3D Control Register (Index 22h) ............................................................................. 28 4.12 Powerdown Control/Status Register (Index 26h) ................................................... 29 4.13 Extended Audio ID Register (Index 28h) ................................................................ 30 4.14 Extended Audio Status/Control Register (Index 2Ah) ............................................ 30 4.15 Audio Sample Rate Control Registers (Index 2Ch - 32h) ....................................... 31 4.16 Extended Modem ID Register (Index 3Ch) ............................................................ 32 4.17 Extended Modem Status/Control Register (Index 3Eh) ......................................... 32 4.18 GPIO Pin Configuration Register (Index 4Ch) ........................................................32 4.19 GPIO Pin Polarity/Type Configuration Register (Index 4Eh) .................................. 33 4.20 GPIO Pin Sticky Register (Index 50h) .................................................................... 33 4.21 GPIO Pin Wakeup Mask Register (Index 52h) ...................................................... 34 4.22 GPIO Pin Status Register (Index 54h) ................................................................... 34 4.23 AC Mode Control Register (Index 5Eh) .................................................................. 35 4.24 Misc. Crystal Control Register (Index 60h) ............................................................. 36 4.25 S/PDIF Control Register (Index 68h) ...................................................................... 37 4.26 Serial Port Control Register (Index 6Ah) ................................................................ 38 4.27 Vendor ID1 Register (Index 7Ch) ........................................................................... 39 4.28 Vendor ID2 Register (Index 7Eh) ........................................................................... 39 5. SERIAL DATA PORTS ..................................................................................................... 40 5.1 Overview ................................................................................................................... 40 5.2 Multi-Channel Expansion .......................................................................................... 40 5.3 Serial Data Formats .................................................................................................. 41 6. SONY/PHILIPS DIGITAL INTERFACE (S/PDIF) ............................................................. 43 7. EXCLUSIVE FUNCTIONS ................................................................................................ 44 8. POWER MANAGEMENT ................................................................................................. 45 8.1 AC '97 Reset Modes ................................................................................................. 45 8.1.1 Cold Reset ................................................................................................... 45 8.1.2 Warm Reset ................................................................................................. 45 8.1.3 New Warm Reset .........................................................................................45 8.1.4 Register Reset ............................................................................................. 45 8.2 Powerdown Controls ................................................................................................. 46 9. CLOCKING ....................................................................................................................... 48 9.1 PLL Operation (External Clock) ................................................................................ 48 9.2 24.576 MHz Crystal Operation ..................................................................................48 9.3 Secondary Codec Operation ..................................................................................... 48 10. ANALOG HARDWARE DESCRIPTION ......................................................................... 50 10.1Analog Inputs ............................................................................................................50 10.1.1 Line Inputs ................................................................................................. 50 10.1.2 CD Input ..................................................................................................... 50 10.1.3 Microphone Inputs ..................................................................................... 51 10.1.4 PC Beep Input ............................................................................................ 51 10.1.5 Phone Input ................................................................................................ 51 10.2Analog Outputs ......................................................................................................... 52 10.2.1 Stereo Outputs ........................................................................................... 52 10.2.2 Mono Output .............................................................................................. 52 10.3Miscellaneous Analog Signals ..................................................................................52 10.4Power Supplies ......................................................................................................... 53 10.5Reference Design ..................................................................................................... 53 11. GROUNDING AND LAYOUT ........................................................................................ 54 DS483PP3 3
CS4201
12. PIN DESCRIPTIONS ..................................................................................................56 Audio I/O Pins .................................................................................................................57 Analog Reference, Filter, and Configuration Pins ...........................................................58 AC-Link Pins ...................................................................................................................59 Clock and Configuration Pins ..........................................................................................60 Misc. Digital Interface Pins ..............................................................................................60 Power Supply Pins ..........................................................................................................61 13. PARAMETER AND TERM DEFINITIONS ......................................................................62 14. REFERENCE DESIGN .................................................................................................64 15. REFERENCES ................................................................................................................65 16. PACKAGE DIMENSIONS ...............................................................................................66
4
DS483PP3
CS4201
LIST OF FIGURES
Figure 1. Power Up Timing ...............................................................................................11 Figure 2. Codec Ready from Start-up or Fault Condition ................................................. 11 Figure 3. Clocks................................................................................................................ 11 Figure 4. Data Setup and Hold .........................................................................................12 Figure 5. PR4 Powerdown and Warm Reset.................................................................... 12 Figure 6. Test Mode ......................................................................................................... 12 Figure 7. AC-link Connections .......................................................................................... 13 Figure 8. CS4201 Mixer Diagram ..................................................................................... 15 Figure 9. AC-link Input and Output Framing .....................................................................16 Figure 10. Serial Data Port: Six Channel Circuit .............................................................. 40 Figure 11. Serial Data Format 0 (I2S) .............................................................................. 42 Figure 12. Serial Data Format 1 (Left Justified)................................................................ 42 Figure 13. Serial Data Format 2 (Right Justified, 20-bit data) .......................................... 42 Figure 14. Serial Data Format 3 (Right Justified, 16-bit data) .......................................... 42 Figure 15. S/PDIF Output ................................................................................................. 43 Figure 16. PLL External Loop Filter ..................................................................................48 Figure 17. External Crystal ...............................................................................................48 Figure 18. Line Input (Replicate for Video and AUX) ....................................................... 50 Figure 19. Differential 2 VRMS CD Input.......................................................................... 50 Figure 20. Differential 1 VRMS CD Input.......................................................................... 50 Figure 21. Microphone Input............................................................................................. 51 Figure 22. PC_BEEP Input ...............................................................................................51 Figure 23. Modem Connection .........................................................................................51 Figure 24. Line Out and Headphone Out Setup ...............................................................52 Figure 25. Line Out/Headphone Out Setup ...................................................................... 52 Figure 26. +5V Analog Voltage Regulator ........................................................................ 53 Figure 27. Conceptual Layout for the CS4201 when in XTAL or OSC Clocking Modes .. 55 Figure 28. Pin Locations for the CS4201.......................................................................... 56 Figure 29. CS4201 Reference Design.............................................................................. 64
DS483PP3
5
CS4201
LIST OF TABLES
Table 1. Register Overview for the CS4201 .....................................................................22 Table 2. Analog Mixer Output Attenuation ........................................................................23 Table 3. Microphone Input Gain Values............................................................................25 Table 4. Analog Mixer Input Gain Values .........................................................................26 Table 5. Analog Mixer Input Gain Register Index .............................................................26 Table 6. Input Mux Selection ............................................................................................27 Table 7. Record Gain Values............................................................................................27 Table 8. Directly Supported SRC Sample Rates for the CS4201 .....................................31 Table 9. GPIO Input/Output Configurations ......................................................................33 Table 10. Slot Mapping for the CS4201...........................................................................35 Table 11. Serial Data Format Selection ............................................................................38 Table 12. Device ID with Corresponding Part Number .....................................................39 Table 13. Serial Data Formats and Compatible DACs for the CS4201 ...........................41 Table 14. Powerdown PR Bit Functions ...........................................................................46 Table 15. Powerdown PR Function Matrix for the CS4201 ..............................................47 Table 16. Power Consumption by Powerdown Mode for the CS4201..............................47 Table 17. Clocking Configurations for the CS4201...........................................................49
6
DS483PP3
CS4201
1. CHARACTERISTICS AND SPECIFICATIONS
ANALOG CHARACTERISTICS (Standard test conditions unless otherwise noted: Tambient = 25 C, AVdd = 5.0 V 5%, DVdd = 3.3 V 5%; 1 kHz Input Sine wave; Sample Frequency, Fs = 48 kHz; ZAL=100 k/ 1000 pF load for Mono and Line Outputs; CDL = 18 pF load (Note 1); Measurement bandwidth is 20 Hz - 20 kHz, 18-bit linear coding for ADC functions, 20-bit linear coding for DAC functions; Mixer registers set for unity gain.
Parameter (Note 2) Symbol Path (Note 3) A-D A-D A-D A-D A-D D-A D-A A-A D-A A-D A-A A-A D-A A-D D-A CS4201-JQ Min Typ Max Unit
Full Scale Input Voltage Line Inputs Mic Inputs (10dB = 0, 20dB = 0) Mic Inputs (10dB = 1, 20dB = 0) Mic Inputs (10dB = 0, 20dB = 1) Mic Inputs (10dB = 1, 20dB = 1) Full Scale Output Voltage Line and Mono Outputs Headphone Output FR Frequency Response (Note 4) Analog Ac = 0.5 dB DAC Ac = 0.5 dB ADC Ac = 0.5 dB DR Dynamic Range Stereo Analog Inputs to LINE_OUT Mono Analog Input to LINE_OUT DAC Dynamic Range ADC Dynamic Range DAC SNR SNR (-20 dB FS input w/ CCIR-RMS filter on output) THD+N Total Harmonic Distortion + Noise (-3 dB FS input signal): Line Output Headphone Output DAC ADC (all inputs) Power Supply Rejection Ratio (1 kHz, 0.5 VRMS w/ 5 V DC offset) (Note 4) Interchannel Isolation Spurious Tone Input Impedance (Note 4) (Note 4)
0.91 0.91 0.283 0.091 0.0283 0.91 20 20 20 90 85 85 85 -
1.00 1.00 0.315 0.10 0.0315 1.0 1.4 95 90 90 90 70
1.13 20,000 20,000 20,000 -
VRMS VRMS VRMS VRMS VRMS VRMS VRMS Hz Hz Hz dB FS A dB FS A dB FS A dB FS A dB
A-A A-A D-A A-D
40 70 10
-90 -75 -87 -84 60 87 -100 -
-80 -70 -80 -80 -
dB FS dB FS dB FS dB FS dB dB dB FS k
Notes: 1. ZAL refers to the analog output pin loading and CDL refers to the digital output pin loading. 2. Parameter definitions are given in Section 13, Parameter and Term Definitions. 3. Path refers to the signal path used to generate this data. These paths are defined in Section 13, Parameter and Term Definitions. 4. This specification is guaranteed by silicon characterization; it is not production tested.
DS483PP3
7
CS4201
ANALOG CHARACTERISTICS
Parameter (Note 2) External Load Impedance Line Output, Mono Output Headphone Output Output Impedance Line Output, Mono Output Headphone Output Input Capacitance Vrefout (Continued) Symbol Path (Note 3) CS4201-JQ Min Typ Max Unit
10 32 2.3
730 0.8 5 2.4
2.5
k pF V
(Note 4) (Note 4)
MIXER CHARACTERISTICS
Parameter Mixer Gain Range Span PC Beep Line In, Aux, CD, Video, Mic1, Mic2, Phone Mono Out, Line Out, Headphone Out ADC Gain Step Size All volume controls except PC Beep PC Beep Min Typ 45.0 46.5 46.5 22.5 1.5 3.0 Max Unit dB dB dB dB dB dB
ABSOLUTE MAXIMUM RATINGS (AVss1 = AVss2 = DVss1 = DVss2 = 0 V)
Parameter Power Supplies +3.3 V Digital +5 V Digital Analog (Supplies, Inputs, Outputs) (Except Supply Pins) (Except Supply Pins) Min -0.3 -0.3 -0.3 -10 -15 -0.3 -0.3 (Power Applied) -55 -65 Typ Max 6.0 6.0 6.0 1.25 10 15 AVdd+ 0.3 DVdd + 0.3 110 150 Unit V V V W mA mA V V C C
Total Power Dissipation Input Current per Pin Output Current per Pin Analog Input voltage Digital Input voltage Ambient Temperature Storage Temperature
RECOMMENDED OPERATING CONDITIONS (AVss1 = AVss2 = DVss1 = DVss2 = 0 V)
Parameter Power Supplies Symbol +3.3 V Digital DVdd1, DVdd2 +5 V Digital DVdd1, DVdd2 Analog AVdd1, AVdd2 Min 3.135 4.75 4.75 0 Typ 3.3 5 5 Max 3.465 5.25 5.25 70 Unit V V V C
Operating Ambient Temperature
8
DS483PP3
CS4201
DIGITAL CHARACTERISTICS (AVss = DVss = 0 V)
Parameter DVdd = 3.3V Low level input voltage High level input voltage High level output voltage Low level output voltage Input Leakage Current (AC-link inputs) Output Leakage Current (Tri-stated AC-link outputs) Output buffer drive current BIT_CLK, SPDO/SDO2 SDATA_IN, EAPD/SCLK GPIO0/LRCLK, GPIO1/SDOUT (Note 4) DVdd = 5.0 V Low level input voltage High level input voltage High level output voltage Low level output voltage Input Leakage Current (AC-link inputs) Output Leakage Current (Tri-stated AC-link outputs) Output buffer drive current BIT_CLK, SPDO/SDO2 SDATA_IN, EAPD/SCLK GPIO0/LRCLK, GPIO1/SDOUT (Note 4) Symbol Vil Vih Voh Vol Min 2.15 3.00 -10 -10 Vil Vih Voh Vol 3.25 4.50 -10 -10 Typ 3.25 0.03 24 4 4 4.95 0.03 24 4 4 Max 0.80 0.35 10 10 0.80 0.35 10 10 Unit V V V V A A mA mA mA V V V V A A mA mA mA
DS483PP3
9
CS4201
AC '97 SERIAL PORT TIMING Standard test conditions unless otherwise noted: Tambient = 25 C,
AVdd = 5.0 V, DVdd = 3.3 V; CL = 55 pF load. Parameter RESET Timing RESET# active low pulse width RESET# inactive to BIT_CLK start-up delay Symbol Trst_low Trst2clk Min 1.0 100 36 36 8 10 0 2 2 2 2 1.0 162.8 15 Typ 4.0 4.0 2.5 62.5 12.288 81.4 40.7 40.7 48 20.8 1.3 19.5 10 4 4 0.285 285 Max 750 45 45 12 6 6 6 6 1.0 25 Unit s s s ms s s MHz ns ps ns ns kHz s s s ns ns ns ns ns ns ns s s ns ns ns
(XTL mode) (OSC mode) (PLL mode)
1st SYNC active to CODEC READY `set' Vdd stable to RESET# inactive Clocks BIT_CLK frequency BIT_CLK period BIT_CLK output jitter (depends on XTL_IN source) BIT_CLK high pulse width BIT_CLK low pulse width SYNC frequency SYNC period SYNC high pulse width SYNC low pulse width Data Setup and Hold Output propagation delay from rising edge of BIT_CLK Input setup time from falling edge of BIT_CLK Input hold time from falling edge of BIT_CLK Input signal rise time Input signal fall time Output signal rise time (Note 4) Output signal fall time (Note 4) Misc. Timing Parameters End of Slot 2 to BIT_CLK, SDATA_IN low (PR4) SYNC pulse width (PR4) Warm Reset SYNC inactive (PR4) to BIT_CLK start-up delay Setup to trailing edge of RESET# (ATE test mode) (Note 4) Rising edge of RESET# to Hi-Z delay (Note 4)
Tsync2crd Tvdd2rst# Fclk Tclk_period Tclk_high Tclk_low Fsync Tsync_period Tsync_high Tsync_low Tco Tisetup Tihold Tirise Tifall Torise Tofall Ts2_pdown Tsync_pr4 Tsync2clk Tsetup2rst Toff
10
DS483PP3
CS4201
BIT_CLK Trst_low RESET# Tvdd2rst# Vdd Trst2clk
Figure 1. Power Up Timing
BIT_CLK
SYNC Tsync2crd CODEC_READY
Figure 2. Codec Ready from Start-up or Fault Condition
BIT_CLK Torise Tclk_high Tclk_low SYNC Tirise Tsync_high Tifall Tsync_low Tclk_period Tifall
Tsync_period
Figure 3. Clocks
DS483PP3
11
CS4201
BIT_CLK
SDATA_IN Tco SDATA_OUT, SYNC
Tisetup
Tihold
Figure 4. Data Setup and Hold
BIT_CLK Slot 1 SDATA_OUT Write to 0x20 Slot 2 Data PR4 Ts2_pdown SDATA_IN Don't Care
SYNC Tsync_pr4 Tsync2clk
Figure 5. PR4 Powerdown and Warm Reset
RESET# Tsetup2rst SDATA_OUT, SYNC SDATA_IN, BIT_CLK
Toff Hi-Z
Figure 6. Test Mode
12
DS483PP3
CS4201
2. GENERAL DESCRIPTION
The CS4201 is a mixed-signal serial audio codec with integrated headphone power amplifier compliant with the Intel(R) Audio Codec '97 Specification, revision 2.1 [6] (referred to as AC '97). It is designed to be paired with a digital controller, typically located on the PCI bus or integrated within the system core logic chip set. The controller is responsible for all communications between the CS4201 and the remainder of the system. The CS4201 contains two distinct functional sections: digital and analog. The digital section includes the AC-link interface, S/PDIF interface, serial data port, GPIO, power management support, and Sample Rate Converters (SRCs). The analog section includes the analog input multiplexer (mux), stereo input mixer, stereo output mixer, mono output mixer, headphone amplifier, stereo Analog-to-Digital Converters (ADCs), stereo Digital-to-Analog Converters (DACs), and their associated volume controls.
2.1
AC-Link
All communication with the CS4201 is established with a 5-wire digital interface to the controller called the AC-link. This interface is shown in Figure 7. All clocking for the serial communication is synchronous to the BIT_CLK signal. BIT_CLK is generated by the primary audio codec and is used to clock the controller and any secondary audio codecs. Both input and output AC-link audio frames are organized as a sequence of 256 serial bits forming 13 groups referred to as `slots'. During each audio frame, data is passed bi-directionally between the CS4201 and the controller. The input frame is driven from the CS4201 on the SDATA_IN line. The output frame is driven from the controller on the SDATA_OUT line. The controller is also responsible for issuing reset commands via the RESET# signal. Following a Cold Reset, the CS4201 is responsible for notifying the controller that it is ready for operation after synchronizing its internal functions. The CS4201 AC-link signals must use the same digital supply voltage as the controller, either +5 V or +3.3 V. See Section 3, AC-Link Frame Definition, for detailed AC-link information.
Digital AC'97 Controller
SYNC
BIT_CLK
AC'97 CODEC
SDATA_OUT SDATA_IN RESET#
Figure 7. AC-link Connections
DS483PP3
13
CS4201
2.2 Control Registers
the analog inputs to the CS4201 according to the settings in the volume control registers. The stereo output mixer sums the output of the stereo input mixer with the PC_BEEP and PHONE signals. After going through the 3D output mixer, the stereo output mix is then sent to the LINE_OUT and HP_OUT pins of the CS4201. The mono output mixer generates a monophonic sum of the left and right audio channels from the stereo input mixer. The mono output mix is then sent to the MONO_OUT pin on the CS4201.
The CS4201 contains a set of AC '97 compliant control registers, and a set of Cirrus Logic defined control registers. These registers control the basic functions and features of the CS4201. Read accesses of the control registers by the AC '97 controller are accomplished with the requested register index in Slot 1 of a SDATA_OUT frame. The following SDATA_IN frame will contain the read data in its Slot 2. Write operations are similar, with the register index in Slot 1 and the write data in Slot 2 of a SDATA_OUT frame. The function of each input and output frame is detailed in Section 3, AC-Link Frame Definition. Individual register descriptions are found in Section 4, Register Interface.
2.5
Input Mux
2.3
Sample Rate Converters
The sample rate converters (SRC) provide high accuracy digital filters supporting sample frequencies other than 48 kHz to be captured from the CS4201 or played from the controller. AC '97 requires support for two audio rates (44.1 and 48 kHz). In addition, the Intel(R) I/O Controller Hub (ICHx) specification [9] requires support for five more audio rates (8, 11.025, 16, 22.05, and 32 kHz). The CS4201 supports all these rates, as shown in Table 8 on page 31.
The input multiplexer controls which analog input is sent to the ADCs. The output of the input mux is converted to stereo 18-bit digital PCM data and transmitted to the controller by means of the AC-link SDATA_IN signal.
2.6
Volume Control
2.4
Mixers
The CS4201 input and output mixers are illustrated in Figure 8. The stereo input mixer sums together
The CS4201 volume registers control analog input levels to the input mixer and analog output levels, including the master volume level. The PC_BEEP volume control uses 3 dB steps with a range of 0 dB to -45 dB attenuation. All other analog volume controls use 1.5 dB steps. The analog inputs have a mixing range of +12 dB signal gain to -34.5 dB signal attenuation. The analog output volume controls have from 0 dB to -46.5 dB attenuation for LINE_OUT, HP_OUT, and MONO_OUT.
14
DS483PP3
CS4201
PC BEEP BYPASS PC_BEEP
VOL
MUTE
PHONE
VOL
MUTE
MAIN D/A CONVERTERS PCM_OUT DAC MIC1 MIC2 MIC SELECT BOOST MUTE
PCM OUT PATH MUTE
VOL VOL
3D DAC DIRECT MODE MASTER VOLUME OUTPUT BUFFER LINE OUT MUTE
LINE
MUTE
ANALOG STEREO INPUT MIXER
ANALOG STEREO OUTPUT MIXER
3D OUTPUT MIXER
VOL
VOL
CD
VOL
MUTE
HEADPHONE VOLUME HEADPHONE OUT MUTE HEADPHONE AMPLIFIER
VOL
VIDEO
VOL
MUTE
STEREO TO MONO MIXER
AUX
MUTE
1/2
MONO OUT SELECT
MONO VOLUME MONO OUT MUTE OUTPUT BUFFER
VOL
VOL
STEREO TO MONO MIXER
1/2
MAIN ADC GAIN ADC INPUT MUX MAIN A/D CONVERTERS PCM_IN
VOL
MUTE
ADC
Figure 8. CS4201 Mixer Diagram
DS483PP3
15
CS4201
3. AC-LINK FRAME DEFINITION
The AC-link is a bi-directional serial port with data organized into frames consisting of one 16-bit and twelve 20-bit time-division multiplexed slots. Slot 0 is a special reserved time slot containing 16-bits which are used for AC-link protocol infrastructure. Slots 1 through 12 contain audio or control/status data. Both the serial data output and input frames are defined from the controller perspective, not from the CS4201 perspective. The controller synchronizes the beginning of a frame with the assertion of the SYNC signal. Figure 9 shows the position of each bit location within the frame. The first bit position in a new serial data frame is F0 and the last bit position in the serial data frame is F255. When SYNC goes active (high) and is sampled active by the CS4201 (on the falling edge of BIT_CLK), both devices are synchronized to a new serial data frame. The data on the SDATA_OUT pin at this clock edge is the final bit of the previous frame's serial data. On the next rising edge of BIT_CLK, the first bit of Slot 0 is driven by the controller on the SDATA_OUT pin. On the next falling edge of BIT_CLK, the CS4201 latches this data in as the first bit of the frame.
20.8 s (48 kHz) Tag Phase SYNC 12.288 MHz 81.4 ns BIT_CLK Data Phase
Bit Frame Position:
F255 0
F0 Valid Frame
F1 Slot 1 Valid
F2 Slot 2 Valid
F12 Slot 12 Valid
F13
F14 Codec ID1
F15 Codec ID0
F16
F35
F36
F56
F57
F76
F96
F255
SDATA_OUT
0
R/W
0
WD15
D19
D18
D19
D19
0
Bit Frame Position:
F255 GPIO INT
F0 Codec Ready
F1 Slot 1 Valid
F2 Slot 2 Valid
F12 Slot 12 Valid
F13
F14
F15
F16
F35
F36
F56
F57
F76
F96
F255 GPIO INT
SDATA_IN
0
0
0
0
0
RD15
D19
D18
D19
D19
Slot 0
Slot 1
Slot 2
Slot 3
Slot 4
Slots 5-12
Figure 9. AC-link Input and Output Framing
16
DS483PP3
CS4201
3.1 AC-Link Serial Data Output Frame
In the serial data output frame, data is passed on the SDATA_OUT pin to the CS4201 from the AC '97 controller. Figure 9 illustrates the serial port timing. The PCM playback data being passed to the CS4201 is shifted out MSB first in the most significant bits of each slot. Any PCM data from the AC '97 controller that is not 20 bits wide should be left justified in its corresponding slot and dithered or zero-padded in the unused bit positions. Bits that are reserved should always be `cleared' by the AC '97 controller. 3.1.1 Serial Data Output Slot Tags (Slot 0)
10 Slot 5 Valid 9 8 7 6 5 4 3 Slot 6 Slot 7 Slot 8 Slot 9 Slot 10 Slot 11 Slot 12 Valid Valid Valid Valid Valid Valid Valid 2 Res 1 0 Codec Codec ID1 ID0
Bit 15 14 13 12 11 Valid Slot 1 Slot 2 Slot 3 Slot 4 Frame Valid Valid Valid Valid
Valid Frame
The Valid Frame bit determines if any of the following slots contain either valid playback data for the CS4201 or data for read/write operations. When `set', at least one of the other AC-link slots contains valid data. If this bit is `clear', the remainder of the frame is ignored. The Slot 1 Valid bit indicates a valid register read/write address for a primary codec. The Slot 2 Valid bit indicates valid register write data for a primary codec. The Slot [3:11] Valid bits indicate the validity of data in their corresponding serial data output slots. If a bit is `set', the corresponding output slot contains valid data. If a bit is `cleared', the corresponding slot will be ignored. The Slot 12 Valid bit indicates if output Slot 12 contains valid GPIO control data. The Codec ID[1:0] bits determine which codec is being accessed during the current AC-link frame. Codec ID[1:0] = 00 indicates the primary codec is being accessed. Codec ID[1:0] = 01, 10, or 11 indicates one of three possible secondary codecs is being accessed. A Codec ID value of 01, 10, or 11 also indicates a valid read/write address and/or valid register write data for a secondary codec.
Slot 1 Valid Slot 2 Valid Slot [3:11] Valid
Slot 12 Valid Codec ID[1:0]
3.1.2
Bit 19 R/W
Command Address Port (Slot 1)
18 RI6 17 RI5 16 RI4 15 RI3 14 RI2 13 RI1 12 RI0 11 10 9 8 7 6 5 Reserved 4 3 2 1 0
R/W
Read/Write. When this bit is `set', a read of the AC '97 register specified by the register index bits will occur in the AC '97 2.x audio codec. When the bit is `cleared', a write will occur. For any read or write access to occur, the Valid Frame bit (F0) must be `set' and the Codec ID[1:0] bits (F[14:15]) must match the Codec ID of the AC '97 2.x audio codec being accessed. Additionally, for a primary codec, the Slot 1 Valid bit (F1) must be `set' for a read access and both the Slot 1 Valid bit (F1) and the Slot 2 Valid bit (F2) must be `set' for a write access. For a secondary codec, both the Slot 1 Valid bit (F1) and the Slot 2 Valid bit (F2) must be `cleared' for read and write accesses. See Figure 9 for bit frame positions. Register Index. The RI[6:0] bits contain the 7-bit register index to the AC '97 registers in the CS4201. All registers are defined at word addressable boundaries. The RI0 bit must be `clear' to access CS4201 registers. 17
RI[6:0]
DS483PP3
CS4201
3.1.3 Command Data Port (Slot 2)
3 210 Reserved
Bit 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 WD15 WD14 WD13 WD12 WD11 WD10 WD9 WD8 WD7 WD6 WD5 WD4 WD3 WD2 WD1 WD0
WD[15:0] NOTE:
Write Data. The WD[15:0] bits contain the 16-bit value to be written to the register. If an access is a read, this slot is ignored. For any write to an AC '97 register, the write is defined to be an `atomic' access. This means that when the Slot 1 Valid bit in output Slot 0 is `set', the Slot 2 Valid bit in output Slot 0 should always be `set' during the same audio frame. No write access may be split across 2 frames.
3.1.4
PCM Playback Data (Slots 3-11)
Bit 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 PD19 PD18 PD17 PD16 PD15 PD14 PD13 PD12 PD11 PD10 PD9 PD8 PD7 PD6 PD5 PD4 PD3 PD2 PD1 PD0
PD[19:0]
Playback Data. The PD[19:0] bits contain the 20-bit PCM (2's complement) playback data for the left and right DACs, serial data ports, and/or the S/PDIF transmitter. Table 10 on page 35 lists a cross reference for each function and its respective slot. The mapping of a given slot to the DAC, serial data port, or S/PDIF transmitter is determined by the state of the ID[1:0] bits in the Extended Audio ID Register (Index 28h) and by the SM[1:0] and AMAP bits in the AC Mode Control Register (Index 5Eh).
3.1.5
GPIO Pin Control (Slot12)
17 16 15 14 13 12 11 10 Not Implemented 9 8 7 6 5 4 GPIO1 GPIO0 3 2 1 Reserved 0
Bit 19 18
GPIO[1:0]
GPIO Pin Control. The GPIO[1:0] bits control the CS4201 GPIO pins configured as outputs. Write accesses using GPIO pin control bits configured at outputs will be reflected on the GPIO pin output on the next AC-link frame. Write accesses using GPIO pin control bits configured as inputs will have no effect and are ignored. If the GPOC bit in the Misc. Crystal Control Register (Index 60h) is `set', the bits in output Slot 12 are ignored and GPIO pins configured as outputs are controlled through the GPIO Pin Status Register (Index 54h).
18
DS483PP3
CS4201
3.2 AC-Link Serial Data Input Frame
In the serial data input frame, data is passed on the SDATA_IN pin from the CS4201 to the AC '97 controller. The data format for the input frame is very similar to the output frame. Figure 9 on page 16 illustrates the serial port timing. The PCM capture data from the CS4201 is shifted out MSB first in the most significant 18 bits of each slot. The least significant 2 bits in each slot will be `cleared'. If the host requests PCM data from the AC '97 Controller that is less than 18 bits wide, the controller should dither and round or just round (but not truncate) to the desired bit depth. Bits that are reserved or not implemented in the CS4201 will always be returned `cleared'. 3.2.1 Serial Data Input Slot Tag Bits (Slot 0)
6 0 5 0 4 0 3 Slot 12 Valid 2 1 Reserved 0
Bit 15 14 13 12 11 10 9 8 7 Codec Slot 1 Slot 2 Slot 3 Slot 4 Slot 5 Slot 6 Slot 7 Slot 8 Ready Valid Valid Valid Valid Valid Valid Valid Valid
Codec Ready
Codec Ready. The Codec Ready bit indicates the readiness of the CS4201 AC-link. Immediately after a Cold Reset this bit will be `clear'. Once the CS4201 clocks and voltages are stable, this bit will be `set'. Until the Codec Ready bit is `set', no AC-link transactions should be attempted by the controller. The Codec Ready bit does not indicate readiness of the DACs, ADCs, Vref, or any other analog function. Those must be checked in the Powerdown Control/Status Register (Index 26h) by the controller before any access is made to the mixer registers. Any accesses to the CS4201 while Codec Ready is `clear' are ignored. The Slot 1 Valid bit indicates Slot 1 contains a valid read back address. The Slot 2 Valid bit indicates Slot 2 contains valid register read data. The Slot [3:8] Valid bits indicate Slot [3:8] contains valid capture data from the CS4201 ADCs. If a bit is `set', the corresponding input slot contains valid data. If a bit is `cleared', the corresponding slot will be ignored. The Slot 12 Valid bit indicates Slot 12 contains valid GPIO status data.
Slot 1 Valid Slot 2 Valid Slot [3:8] Valid
Slot 12 Valid
3.2.2
Status Address Port (Slot 1)
17 RI5 16 RI4 15 RI3 14 RI2 13 RI1 12 RI0 11 10 9 8 7 6 5 SR3 SR4 SR5 SR6 SR7 SR8 SR9 4 0 3 SR11 2 0 1 0 Reserved
Bit 19 18 Res RI6
RI[6:0]
Register Index. The RI[6:0] bits echo the AC '97 register address when a register read has been requested in the previous frame. The CS4201 will only echo the register index for a read access. Write accesses will not return valid data in Slot 1. Slot Request. If SRx is `set', this indicates the CS4201 SRC does not need a new sample on the next AC-link frame for that particular slot. If SRx is `clear', the SRC indicates a new sample is needed on the following frame. If the VRA bit in the Extended Audio Status/Control Register (Index 2Ah) is `clear', the SR[3:9,11] bits are always 0. When VRA is `set', the SRC is enabled and the SR[3:9,11] bits are used to request data. 19
SR[3:9,11]
DS483PP3
CS4201
3.2.3 Status Data Port (Slot 2)
3 2 1 Reserved 0
Bit 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 RD15 RD14 RD13 RD12 RD11 RD10 RD9 RD8 RD7 RD6 RD5 RD4 RD3 RD2 RD1 RD0
RD[15:0]
Read Data. The RD[15:0] bits contain the register data requested by the controller from the previous read request. All read requests will return the read address in the input Slot 1 and the register data in the input Slot 2 on the following serial data frame.
3.2.4 PCM Capture Data (Slot 3-8)
Bit 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 CD17 CD16 CD15 CD14 CD13 CD12 CD11 CD10 CD9 CD8 CD7 CD6 CD5 CD4 CD3 CD2 CD1 CD0 1 0 0 0
CD[17:0]
Capture Data. The CD [17:0] bits contain 18-bit PCM (2's complement) capture data. The data will only be valid when the respective slot valid bit is `set' in input Slot 0. The mapping of a given slot to an ADC is determined by the state of the ID[1:0] bits in the Extended Audio ID Register (Index 28h) and the SM[1:0] and AMAP bits in the AC Mode Control Register (Index 5Eh). The definition of each slot can be found in Table 10 on page 35.
3.2.5
GPIO Pin Status (Slot 12)
17 0 16 0 15 0 14 0 13 0 12 0 11 0 10 0 9 0 8 0 7 0 6 0 5 4 3 2 Reserved 1 0 GPIO _INT
Bit 19 18 0 0
GPIO1 GPIO0
GPIO[1:0]
GPIO Pin Status. The GPIO[1:0] bits reflect the status of the CS4201 GPIO pins configured as inputs. The pin status of GPIO pins configured as outputs will be reflected back on the GPIO[1:0] bits of input Slot 12 in the next frame. The output GPIO pins are controlled by the GPIO[1:0] pin control bits in output Slot 12. GPIO Interrupt. The GPIO_INT bit indicates that a GPIO interrupt event has occurred. The occurrence of a GPIO interrupt is determined by the GPIO interrupt requirements as outlined in the GPIO Pin Wakeup Mask Register (Index 52h) description. In this case, the GPIO_INT bit is cleared by writing a `0' to the bit in the GPIO Pin Status Register (Index 54h) corresponding to the GPIO pin which generated the interrupt.
GPIO_INT
20
DS483PP3
CS4201
3.3 AC-Link Protocol Violation - Loss of SYNC
* The SYNC signal goes active high before the 256th BIT_CLK clock period after the previous SYNC assertion.
The CS4201 is designed to handle SYNC protocol violations. The following are situations where the SYNC protocol has been violated: * The SYNC signal is not sampled high for exactly 16 BIT_CLK clock cycles at the start of an audio frame. The SYNC signal is not sampled high on the 256th BIT_CLK clock period after the previous SYNC assertion.
*
Upon loss of synchronization with the controller, the CS4201 will mute all analog outputs and `clear' the Codec Ready bit in the serial data input frame until two valid frames are detected. During this detection period, the CS4201 will ignore all register reads and writes and will discontinue the transmission of PCM capture data.
DS483PP3
21
CS4201
4. REGISTER INTERFACE
Reg Register Name D15 D14 D13 D12 D11 D10 D9
0 Mute Mute Mute Mute Mute Mute Mute Mute Mute Mute Mute 0 Mute POP 0
EAPD
D8
ID8 ML0 ML0 0 0 0 0 GL0 GL0 GL0 GL0 GL0 SL0 GL0 MS 0 PR0 0 0 SR8 SR8 0 PRA 0 1 0 0 0
D7
ID7 0 0 0 0 0 0 0 0 0 0 0 0 0
LPBK
D6
0 0 0 0 0 0 20dB 0 0 0 0 0 0 0 0 0 0 0 0 SR6 SR6 0 0 0 1 0 0 0
D5
0 MR5 MR5 MM5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 SR5 SR5 0 0 0 1 0 0 0
D4
ID4 MR4 MR4 MM4 PV3 GN4 GN4 GR4 GR4 GR4 GR4 GR4 0 0 0 0 0 0 0 SR4 SR4 0 0 0 1 0 0 0
D3
0 MR3 MR3 MM3 PV2 GN3 GN3 GR3 GR3 GR3 GR3 GR3 0 GR3 0 S3 REF 0 0 SR3 SR3 0 0 0 1 0 0 0
D2
0 MR2 MR2 MM2 PV1 GN2 GN2 GR2 GR2 GR2 GR2 GR2 SR2 GR2 0 S2 ANL 0 0 SR2 SR2 0 0 0 1 0 0 0
D1
0 MR1 MR1 MM1 PV0 GN1 GN1 GR1 GR1 GR1 GR1 GR1 SR1 GR1 0 S1 DAC 0 0 SR1 SR1 0 0 GC1 GP1 GS1 GW1 GI1
D0 Default
0 MR0 MR0 MM0 0 GN0 GN0 GR0 GR0 GR0 GR0 GR0 SR0 GR0 0 S0 ADC VRA VRA SR0 SR0 0 GPIO GC0 GP0 GS0 GW0 GI0
00h Reset 02h Master Volume 04h Headphone Volume 06h Mono Volume 0Ah PC_BEEP Volume 0Ch Phone Volume 0Eh Mic Volume 10h Line In Volume 12h CD Volume 14h Video Volume 16h Aux Volume 18h PCM Out Volume 1Ah Record Select 1Ch Record Gain 20h General Purpose 22h 3D Control 26h Powerdown Ctrl/Stat 28h Ext'd Audio ID 2Ah Ext'd Audio Stat/Ctrl 2Ch PCM Front DAC Rate 32h PCM L/R ADC Rate 3Ch Ext'd Modem ID 3Eh Ext'd Modem Stat/Ctrl 4Ch GPIO Pin Config. 4Eh GPIO Pin Polarity/Type 50h GPIO Pin Sticky 52h GPIO Pin Wakeup Mask 54h GPIO Pin Status 5Eh AC Mode Control 60h Misc. Crystal Control 68h S/PDIF Control 6Ah Serial Port Control 7Ch Vendor ID1 7Eh Vendor ID2
SE4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 PR6 ID0 0
SE3 ML5 ML5 0 0 0 0 0 0 0 0 0 0 0 3D 0 PR5 0 0 SR13 SR13 0 0 0 1 0 0 0
SE2 ML4 ML4 0 0 0 0 GL4 GL4 GL4 GL4 GL4 0 0 0 0 PR4 0 0
SE1 ML3 ML3 0 0 0 0 GL3 GL3 GL3 GL3 GL3 0 GL3 0 0 PR3 0 0
SE0 ML2 ML2 0 0 0 0 GL2 GL2 GL2 GL2 GL2 SL2 GL2 0 0 PR2 0 0
0 ML1 ML1 0 0 0 0 GL1 GL1 GL1 GL1 GL1 SL1 GL1 MIX 0 PR1
AMAP
1990h 8000h 8000h 8000h 0000h 8008h 8008h 8808h 8808h 8808h 8808h 8808h 0000h 8000h 0000h 0000h 000Fh x201h 0000h BB80h BB80h x000h 0100h 0003h FFFFh 0000h 0000h 0000h 0080h 0002h 0000h 0000h 4352h 5949h
0 0 0 0 SR7 SR7 0 0 0 1 0 0 0
ID1 0
0
SR15 SR14 SR15 SR14 ID1 0 0 1 0 0 0 ID0 0 0 1 0 0 0
SR12 SR11 SR10 SR9 SR12 SR11 SR10 SR9 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0
Cirrus Logic Defined Registers:
0 0
SPEN SDEN
0 0 Val 0 F6 T6
0 0 0 0 F5 T5
0 DPC Fs 0 F4 T4
ASPM
0 0 CC6 0 F2 T2
0
DDM AMAP SPAS 10dB CRST CC3 0 S7 0 CC2 0 S6 DID2
SM1
SM0
0 GPOC Emph
0
0
0 0 Pro SDF0 S0 REV0
0 L 0 F3 T3
Reserved CC5 0 F1 T1 CC4 0 F0 T0
Reserved CC1 0 S5 DID1 CC0 0 S4 DID0
Reserved Copy /Audio SDF1 S1 REV1
SDO2 SDSC S3 1 S2 REV2
F7 T7
Table 1. Register Overview for the CS4201
22
DS483PP3
CS4201
4.1
D15 0
Reset Register (Index 00h)
D14 SE4 D13 SE3 D12 SE2 D11 SE1 D10 SE0 D9 0 D8 ID8 D7 ID7 D6 0 D5 0 D4 ID4 D3 0 D2 0 D1 0 D0 0
SE[4:0] ID8 ID7 ID4 Default
Crystal 3D Stereo Enhancement. SE[4:0] = 00110, indicating this feature is present. 18-bit ADC Resolution. The ID8 bit is `set', indicating this feature is present. 20-bit DAC resolution. The ID7 bit is `set', indicating this feature is present. Headphone Out. The ID4 bit is `set', indicating this feature is present. The state of this bit depends on the state of the HPCFG pin. h. The data in this register is read-only data.
Any write to this register causes a Register Reset of the audio control (Index 00h - 3Ah) and Cirrus Logic defined (Index 5Ah - 7Ah) registers. A read from this register returns configuration information about the CS4201.
4.2
D15 Mute
Analog Mixer Output Volume Registers (Index 02h - 04h)
D14 0 D13 ML5 D12 ML4 D11 ML3 D10 ML2 D9 ML1 D8 ML0 D7 0 D6 0 D5 MR5 D4 MR4 D3 MR3 D2 MR2 D1 MR1 D0 MR0
Mute ML[5:0]
Output Mute. Setting this bit mutes the LINE_OUT_L/R or HP_OUT_L/R output signals. Output Volume Left. These bits control the left master output volume. Each step corresponds to 1.5 dB gain adjustment, with a total available range from 0 dB to -46.5 dB attenuation. Setting the ML5 bit sets the left channel attenuation to -46.5 dB by forcing ML[4:0] to a `1' state. ML[5:0] will read back 011111 when ML5 has been `set'. See Table 2 for further details. Output Volume Right. These bits control the right master output volume. Each step corresponds to 1.5 dB gain adjustment, with a total available range from 0 dB to -46.5 dB attenuation. Setting the MR5 bit sets the right channel attenuation to -46.5 dB by forcing MR[4:0] to a `1' state. MR[5:0] will read back 011111 when MR5 has been `set'. See Table 2 for further details. 8000h. This value corresponds to 0 dB attenuation and Mute `set'.
MR[5:0]
Default
If the HPCFG pin is left floating, register 02h controls the Master Output Volume and register 04h controls the Headphone Output Volume. If the HPCFG pin is tied `low', register 02h controls the Headphone Volume and register 04h is a read-only register and always returns 0000h when `read'. Mx5..Mx0 Write 000000 000001 ... 011111 100000 ... 111111 Mx5..Mx0 Read 000000 000001 ... 011111 011111 ... 011111 Gain Level 0 dB -1.5 dB ... -46.5 dB -46.5 dB ... -46.5 dB
Table 2. Analog Mixer Output Attenuation DS483PP3 23
CS4201
4.3
D15 Mute
Mono Volume Register (Index 06h)
D14 0 D13 0 D12 0 D11 0 D10 0 D9 0 D8 0 D7 0 D6 0 D5 MM5 D4 MM4 D3 MM3 D2 MM2 D1 MM1 D0 MM0
Mute MM[5:0]
Mono Mute. Setting this bit mutes the MONO_OUT output signal. Mono Volume Control. The MM[5:0] bits control the mono output volume. Each step corresponds to 1.5 dB gain adjustment, with a total available range from 0 dB to -46.5 dB attenuation. Setting the MM5 bit sets the mono attenuation to -46.5 dB by forcing MM[4:0] to a `1' state. MM[5:0] will read back 011111 when MM5 has been `set'. See Table 2 on page 23 for further attenuation levels. 8000h. This value corresponds to 0 dB attenuation and Mute `set'.
Default
4.4
D15 Mute
PC_BEEP Volume Register (Index 0Ah)
D14 0 D13 0 D12 0 D11 0 D10 0 D9 0 D8 0 D7 0 D6 0 D5 0 D4 PV3 D3 PV2 D2 PV1 D1 PV0 D0 0
Mute PV[3:0]
PC_BEEP Mute. Setting this bit mutes the PC_BEEP input signal. PC_BEEP Volume Control. The PV[3:0] bits control the gain levels of the PC_BEEP input source to the Input Mixer. Each step corresponds to 3 dB gain adjustment, with 0000 = 0 dB. The total range is 0 dB to -45 dB attenuation. 0000h. This value corresponds to 0 dB attenuation and Mute `clear'.
Default
This register has no effect on the PC_BEEP volume during RESET#.
4.5
D15 Mute
Phone Volume Register (Index 0Ch)
D14 0 D13 0 D12 0 D11 0 D10 0 D9 0 D8 0 D7 0 D6 0 D5 0 D4 GN4 D3 GN3 D2 GN2 D1 GN1 D0 GN0
Mute GN[5:0]
Phone Mute. Setting this bit mutes the Phone input signal. Phone Volume Control. The GN[4:0] bits control the gain level of the Phone input source to the Input Mixer. Each step corresponds to 1.5 dB gain adjustment, with 01000 = 0 dB. The total range is +12 dB to -34.5 dB attenuation. See Table 4 on page 26 for further attenuation levels. 8008h. This value corresponds to 0 dB attenuation and Mute `set'.
Default
24
DS483PP3
CS4201
4.6
D15 Mute
Microphone Volume Register (Index 0Eh)
D14 0 D13 0 D12 0 D11 0 D10 0 D9 0 D8 0 D7 0 D6 20dB D5 0 D4 GN4 D3 GN3 D2 GN2 D1 GN1 D0 GN0
Mute 20dB
Microphone Mute. Setting this bit mutes the MIC1 or MIC2 signal. The selection of the MIC1 or MIC2 input pin is controlled by the MS bit in the General Purpose Register (Index 20h). Microphone 20 dB Boost. When `set', the 20dB bit enables the +20 dB microphone boost block. In combination with the 10dB boost bit in the Misc. Crystal Control Register (Index 60h) this bit allows for variable boost from 0 dB to +30 dB in steps of 10 dB. Table 3 summarizes this behavior. Microphone Volume Control. The GN[4:0] bits are used to control the gain level of the Microphone input source to the Input Mixer. Each step corresponds to 1.5 dB gain adjustment, with 01000 = 0 dB. The total range is +12 dB to -34.5 dB gain. See Table 3 for further details. 8008h. This value corresponds to 0 dB gain and Mute `set'. Gain Level GN4 - GN0 00000 00001 ... 00111 01000 01001 ... 11111 10dB = 0, 20dB = 0 +12.0 dB +10.5 dB ... +1.5 dB 0.0 dB -1.5 dB ... -34.5 dB 10dB = 1, 20dB = 0 +22.0 dB +20.5 dB ... +11.5 dB +10.0 dB +8.5 dB ... -24.5 dB 10dB = 0, 20dB = 1 +32.0 dB +30.5 dB ... +21.5 dB +20.0 dB +18.5 dB ... -14.5 dB 10dB = 1, 20dB = 1 +42.0 dB +40.5 dB ... +31.5 dB +30.0 dB +28.5 dB ... -4.5 dB
GN[4:0]
Default
Table 3. Microphone Input Gain Values
DS483PP3
25
CS4201
4.7
D15 Mute
Analog Mixer Input Gain Registers (Index 10h - 18h)
D14 0 D13 0 D12 GL4 D11 GL3 D10 GL2 D9 GL1 D8 GL0 D7 0 D6 0 D5 0 D4 GR4 D3 GR3 D2 GR2 D1 GR1 D0 GR0
Mute GL[4:0]
Stereo Input Mute. Setting this bit mutes the respective input signal, both right and left inputs. Left Volume Control. The GL[4:0] bits are used to control the gain level of the left analog input source to the Input Mixer. Each step corresponds to 1.5 dB gain adjustment, with 01000 = 0 dB. The total range is +12 dB to -34.5 dB gain. See Table 4 for further details. Right Volume Control. The GR[4:0] bits are used to control the gain level of the right analog input source to the Input Mixer. Each step corresponds to 1.5 dB gain adjustment, with 01000 = 0 dB. The total range is +12 dB to -34.5 dB gain. See Table 4 for further details. 8808h. This value corresponds to 0 dB gain and Mute `set'.
GR[4:0]
Default
The Analog Mixer Input Gain Registers are listed in Table 5. Gx4 - Gx0 Gain Level 00000 00001 ... 00111 01000 01001 ... 11111 +12.0 dB +10.5 dB ... +1.5 dB 0.0 dB -1.5 dB ... -34.5 dB
Table 4. Analog Mixer Input Gain Values Register Index 10h 12h 14h 16h 18h Function Line In Volume CD Volume Video Volume Aux Volume PCM Out Volume
Table 5. Analog Mixer Input Gain Register Index
26
DS483PP3
CS4201
4.8
D15 0
Input Mux Select Register (Index 1Ah)
D14 0 D13 0 D12 0 D11 0 D10 SL2 D9 SL1 D8 SL0 D7 0 D6 0 D5 0 D4 0 D3 0 D2 SR2 D1 SR1 D0 SR0
SL[2:0] SR[2:0] Default
Left Channel Source. The SL[2:0] bits select the left channel source to pass to the ADCs for recording. See Table 6 for possible values. Right Channel Source. The SR[2:0] bits select the right channel source to pass to the ADCs for recording. See Table 6 for possible values. 0000h. This value selects the Mic input for both channels. Sx2 - Sx0 000 001 010 011 100 101 110 111 Record Source Mic CD Input Video Input Aux Input Line Input Stereo Mix Mono Mix Phone Input
Table 6. Input Mux Selection
4.9
D15 Mute
Record Gain Register (Index 1Ch)
D14 0 D13 0 D12 0 D11 GL3 D10 GL2 D9 GL1 D8 GL0 D7 0 D6 0 D5 0 D4 0 D3 GR3 D2 GR2 D1 GR1 D0 GR0
Mute GL[3:0]
Record Gain Mute. Setting this bit mutes the input to the L/R ADCs. Left ADC Gain. The GL[3:0] bits control the input gain on the left channel of the analog source, applied after the input mux and before the ADCs. Each step corresponds to 1.5 dB gain adjustment, with 0000 = 0 dB. The total range is 0 dB to +22.5 dB gain. See Table 7 for further details. Right ADC Gain. The GR[3:0] bits control the input gain on the right channel of the analog source, applied after the input mux and before the ADCs. Each step corresponds to 1.5 dB gain adjustment, with 0000 = 0 dB. The total range is 0 dB to +22.5 dB gain.See Table 7 for further details. 8000h. This value corresponds to 0 dB gain and Mute `set'. Gx4 - Gx0 Gain Level 1111 ... 0001 0000 +22.5 dB ... +1.5 dB 0 dB
GR[3:0]
Default
Table 7. Record Gain Values DS483PP3 27
CS4201
4.10
D15 POP
General Purpose Register (Index 20h)
D14 0 D13 3D D12 0 D11 0 D10 0 D9 MIX D8 MS D7 LPBK D6 0 D5 0 D4 0 D3 0 D2 0 D1 0 D0 0
POP 3D MIX
PCM Out Path. When `clear', the PCM out path is mixed pre 3D. When `set', the PCM out path is mixed post 3D. 3D Enable. When `set', the 3D bit enables the CrystalClear 3D stereo enhancement. This function is not available in DAC Direct Mode (DDM). Mono Output Path. This bit controls the source of the mono output driver. When `clear', the output of the stereo-to-mono mixer is sent to the mono output. When `set', the output of the microphone boost stage is sent to the mono output. The source of the microphone boost stage is controlled by the MS bit in the General Purpose Register (Index 20h). Microphone Select. The MS bit determines which of the two Mic inputs are passed to the mixer. When `set', the MIC2 input is selected. When `clear', the MIC1 input is selected. Loopback Enable. When `set', the LPBK bit enables the ADC/DAC Loopback Mode. This bit routes the output of the ADCs to the input of the DACs without involving the AC-link. 0000h
MS LPBK Default
4.11
D15 0
3D Control Register (Index 22h)
D14 0 D13 0 D12 0 D11 0 D10 0 D9 0 D8 0 D7 0 D6 0 D5 0 D4 0 D3 S3 D2 S2 D1 S1 D0 S0
S[3:0]
Spatial Enhancement Depth Control. The S[3:0] spatial enhancement bits are enabled by the 3D bit in the General Purpose Register (Index 20h). When S[3:0] = 0000, minimum spatial enhancement is added. When S[3:0] = 1111, maximum spatial enhancement is added. 0000h. This value corresponds to minimum spatial enhancement.
Default
28
DS483PP3
CS4201
4.12
D15 EAPD
Powerdown Control/Status Register (Index 26h)
D14 PR6 D13 PR5 D12 PR4 D11 PR3 D10 PR2 D9 PR1 D8 PR0 D7 0 D6 0 D5 0 D4 0 D3 REF D2 ANL D1 DAC D0 ADC
EAPD
External Amplifier Power Down. The EAPD pin follows this bit and is generally used to power down external amplifiers. The EAPD bit is mutually exclusive with the SDSC bit in the Serial Port Control Register (Index 6Ah). The SDSC bit must be `clear' before the EAPD bit may be `set'. If the SDSC bit is `set', EAPD is a read-only bit and always returns `0'. Headphone Amplifier Powerdown. When `set', the headphone amplifier is powered down. Internal Clock Disable. When `set', the internal master clock is disabled (BIT_CLK running). The only way to recover from setting this bit is through a Cold Reset (driving the RESET# signal active). AC-link Powerdown. When `set', the AC-link is powered down (BIT_CLK off). The AC-link can be restarted through a Warm Reset using the SYNC signal, or a Cold Reset using the RESET# signal (primary audio codec only). Analog Mixer Powerdown (Vref off). When `set', the analog mixer and voltage reference are powered down. When clearing this bit, the ANL, ADC, and DAC bits should be checked before writing any mixer registers. Analog Mixer Powerdown (Vref on). When `set', the analog mixer is powered down (the voltage reference is still active). When clearing this bit, the ANL bit should be checked before writing any mixer registers. Front DACs Powerdown. When `set', the DACs are powered down. When clearing this bit, the DAC bit should be checked before sending any data to the DACs. L/R ADCs and Input Mux Powerdown. When `set', the ADCs and the ADC input muxes are powered down. When clearing this bit, no valid data will be sent down the AC-link until the ADC bit goes high. Voltage Reference Ready Status. When `set', the REF bit indicates the voltage reference is at a nominal level. Analog Ready Status. When `set', the analog output mixer, input multiplexer, and volume controls are ready. When `clear', no volume control registers should be written. Front DAC Ready Status. When `set', the DACs are ready to receive data across the AC-link. When `clear', the DACs will not accept any valid data. L/R ADCs Ready Status. When `set', the ADCs are ready to send data across the AC-link. When `clear', no data will be sent to the controller. 0000h. This value indicates all blocks are powered on. The lower four bits will change as the CS4201 finishes an initialization and calibration sequence.
PR6 PR5
PR4
PR3
PR2
PR1
PR0
REF
ANL
DAC
ADC
Default
The PR[6:0] and the EAPD bits are powerdown control for different sections of the CS4201 as well as external amplifiers. The REF, ANL, DAC, and ADC bits are read-only status bits which, when `set', indicate that a particular section of the CS4201 is ready. After the controller receives the Codec Ready bit in input Slot 0, these status bits must be checked before writing to any mixer registers. See Section 8, Power Management, for more information on the powerdown functions. DS483PP3 29
CS4201
4.13
D15 ID1
Extended Audio ID Register (Index 28h)
D14 ID0 D13 0 D12 0 D11 0 D10 0 D9 AMAP D8 0 D7 0 D6 0 D5 0 D4 0 D3 0 D2 0 D1 0 D0 VRA
ID[1:0]
Codec Configuration ID. These bits indicate the current codec configuration. When ID[1:0] = 00, the CS4201 is the primary audio codec. When ID[1:0] = 01, 10, or 11, the CS4201 is a secondary audio codec. The state of the ID[1:0] bits is determined at power-up from the ID[1:0]# pins and the current clocking scheme, see Table 17 on page 49. Audio Slot Mapping. The AMAP bit indicates whether the optional AC '97 2.1 compliant AC-link slot to audio DAC mapping is supported. This bit is a shadow of the AMAP bit in the AC Mode Control Register (Index 5Eh). The PCM playback and capture slots are mapped according to Table 10 on page 35. Variable Rate PCM Audio. The VRA bit indicates whether variable rate PCM audio is supported. This bit always returns `1', indicating that variable rate PCM audio is available. x201h. The Extended Audio ID Register (Index 28h) is a read-only register.
AMAP
VRA Default
4.14
D15 0
Extended Audio Status/Control Register (Index 2Ah)
D14 0 D13 0 D12 0 D11 0 D10 0 D9 0 D8 0 D7 0 D6 0 D5 0 D4 0 D3 0 D2 0 D1 0 D0 VRA
VRA
Enable Variable Rate Audio. When `set', the VRA bit allows access to the PCM Front DAC Rate Register (Index 2Ch) and the PCM L/R ADC Rate Register (Index 32h). This bit must be `set' in order to use variable PCM playback or capture rates. The VRA bit also serves as a powerdown for the DAC and ADC SRC blocks. Clearing VRA will reset the PCM Front DAC Rate Register (Index 2Ch) and the PCM L/R ADC Rate Register (Index 32h) to their default values. The SRC data path is flushed and the Slot Request bits for the currently active DAC slots will be fixed at `0'. 0000h
Default
30
DS483PP3
CS4201
4.15 Audio Sample Rate Control Registers (Index 2Ch - 32h)
D13 D12 SR13 SR12 D11 SR11 D10 SR10 D9 SR9 D8 SR8 D7 SR7 D6 SR6 D5 SR5 D4 SR4 D3 SR3 D2 SR2 D1 SR1 D0 SR0
D15 D14 SR15 SR14
SR[15:0]
Sample Rate Select. The Audio Sample Rate Control Registers (Index 2Ch - 32h) control playback and capture sample rates. The PCM Front DAC Rate Register (Index 2Ch) controls the Front Left and Front Right DAC sample rates. The PCM L/R ADC Rate Register (Index 32h) controls the Left and Right ADC sample rates. There are seven sample rates directly supported by this register, shown in Table 8. Any value written to this register not contained inTable 8 is not directly supported and will be decoded according to the ranges indicated in the table. The range boundaries have been chosen so that only bits SR[15:12] of each register will have to be considered. All register read transactions will reflect the actual value stored (column 2 in Table 8) and not the one attempted to be written. BB80h. This value corresponds to 48 kHz sample rate.
Default
Writes to the PCM Front DAC Rate Register (Index 2Ch) and the PCM L/R ADC Rate Register (Index 32h) are only available in Variable Rate PCM Audio mode when the VRA bit in the Extended Audio Status/Control Register (Index 2Ah) is `set'. If VRA = 0, writes to the register are ignored and the register will always read BB80h. Sample Rate (Hz) 8,000 11,025 16,000 22,050 32,000 44,100 48,000 SR[15:0], register content (hex value) 1F40 2B11 3E80 5622 7D00 AC44 BB80 SR[15:0], decode range (hex value) 0000 - 1FFF 2000 - 2FFF 3000 - 3FFF 4000 - 5FFF 6000 - 7FFF 8000 - AFFF B000 - FFFF SR[15:12], decode range (bin value) 0000 - 0001 0010 - 0010 0011 - 0011 0100 - 0101 0110 - 0111 1000 - 1010 1011 - 1111
Table 8. Directly Supported SRC Sample Rates for the CS4201
DS483PP3
31
CS4201
4.16
D15 ID1
Extended Modem ID Register (Index 3Ch)
D14 ID0 D13 0 D12 0 D11 0 D10 0 D9 0 D8 0 D7 0 D6 0 D5 0 D4 0 D3 0 D2 0 D1 0 D0 0
ID[1:0]
Codec Configuration ID. Primary is 00; Secondary is 01,10,or 11. This is a reflection of the ID[1:0]# configuration pins. The state of the ID[1:0] bits is determined at power-up from the Codec ID[1:0]# pins and the current clocking scheme, see Table 17 on page 49. x000h. This value indicates no supported modem functions.
Default
The Extended Modem ID Register (Index 3Ch) is a read/write register that identifies the CS4201 modem capabilities. Writing any value to this location issues a reset to modem registers (Index 3Ch-54h), including GPIO registers (Index 4Ch - 54h). Audio registers are not reset by a write to this location.
4.17
D15 0
Extended Modem Status/Control Register (Index 3Eh)
D14 0 D13 0 D12 0 D11 0 D10 0 D9 0 D8 PRA D7 0 D6 0 D5 0 D4 0 D3 0 D2 0 D1 0 D0 GPIO
PRA
GPIO Powerdown. When `set', the PRA bit powers down the GPIO subsystem. When the GPIO section is powered down, all outputs must be tri-stated and input Slot 12 should be marked invalid when the AC-link is active. To use any GPIO functionality PRA must be cleared first. The Serial Data mode and the GPIO mode of operation are mutually exclusive. To use any GPIO function, SDEN of the Serial Port Control Register (Index 6Ah) must be `clear' prior to clearing PRA. If the SDEN bit is `set', PRA is a read-only bit and always returns `1'. GPIO. When `set', the GPIO bit indicates the GPIO subsystem is ready for use. When `set', input Slot 12 will also be marked valid. 0100h
GPIO Default
4.18
D15 0
GPIO Pin Configuration Register (Index 4Ch)
D14 0 D13 0 D12 0 D11 0 D10 0 D9 0 D8 0 D7 0 D6 0 D5 0 D4 0 D3 0 D2 0 D1 GC1 D0 GC0
GC[1:0] Default
GPIO Pin Configuration. When `set', the GC[1:0] bits define the corresponding GPIO pin as an input. When `clear', the corresponding GPIO pin is defined as an output. 0003h. This value corresponds to all GPIO pins configured as inputs.
After a Cold Reset or a modem Register Reset (see Extended Modem ID Register (Index 3Ch)), all GPIO pins are configured as inputs. The upper 14 bits of this register always return `0'.
32
DS483PP3
CS4201
4.19
D15 1
GPIO Pin Polarity/Type Configuration Register (Index 4Eh)
D14 1 D13 1 D12 1 D11 1 D10 1 D9 1 D8 1 D7 1 D6 1 D5 1 D4 1 D3 1 D2 1 D1 GP1 D0 GP0
GP[1:0]
GPIO Pin Configuration. This register defines the GPIO input polarity (0 = Active Low, 1 = Active High) when a GPIO pin is configured as an input. The GP[1:0] bits define the GPIO output type (0 = CMOS, 1 = OPEN-DRAIN) when a GPIO pin is configured as an output. The GC[1:0] bits in the GPIO Pin Configuration Register (Index 4Ch) define the GPIO pins as inputs or outputs. See Table 9 for the various GPIO configurations. FFFFh
Default
After a Cold Reset or a modem Register Reset this register defaults to all 1's. The upper 14 bits of this register always return `1'. GCx GPx Function 0 0 1 1 0 1 0 1 Output Output Input Input Configuration CMOS Drive Open Drain Active Low Active High (default)
Table 9. GPIO Input/Output Configurations
4.20
D15 0
GPIO Pin Sticky Register (Index 50h)
D14 0 D13 0 D12 0 D11 0 D10 0 D9 0 D8 0 D7 0 D6 0 D5 0 D4 0 D3 0 D2 0 D1 GS1 D0 GS0
GS[1:0]
GPIO Pin Sticky. This register defines the GPIO input type (0 = not sticky, 1 = sticky) when a GPIO pin is configured as an input. The GPIO pin status of an input configured as "sticky" is `cleared' by writing a `0' to the corresponding bit of the GPIO Pin Status Register (Index 54h), and by reset. 0000h
Default
After a Cold Reset or a modem Register Reset this register defaults to all 0's, specifying "non-sticky". "Sticky" is defined as edge sensitive, "non-sticky" as level sensitive. The upper 14 bits of this register always return `0'.
DS483PP3
33
CS4201
4.21
D15 0
GPIO Pin Wakeup Mask Register (Index 52h)
D14 0 D13 0 D12 0 D11 0 D10 0 D9 0 D8 0 D7 0 D6 0 D5 0 D4 0 D3 0 D2 0 D1 GW1 D0 GW0
GW[1:0]
GPIO Pin Wakeup. This register provides a mask for determining if an input GPIO change will generate a wakeup event (0 = No, 1 = yes). When the AC-link is powered up, a wakeup event will be communicated through the assertion of GPIO_INT = 1 in input Slot 12. When the AC-link is powered down (Powerdown Control/Status Register (Index 26h) bit PR4 = 1 for primary codecs), a wakeup event will be communicated through a `0' to `1' transition on SDATA_IN. 0000h
Default
GPIO bits which have been programmed as inputs, "sticky", and "wakeup", upon transition either (high-to-low) or (low-to-high) depending on pin polarity, will cause an AC-link wakeup if and only if the AC-link was powered down. Once the controller has re-established communication with the CS4201 following a Warm Reset, it will continue to signal the wakeup event through the GPIO_INT bit of input Slot 12 until the AC '97 controller clears the interrupt-causing bit in the GPIO Pin Status Register (Index 54h); or the "wakeup", config, or "sticky" status of that GPIO pin changes. After a Cold Reset or a modem Register Reset (see Extended Modem ID Register (Index 3Ch)) this register defaults to all 0's, specifying no wakeup event. The upper 14 bits of this register always return `0'.
4.22
D15 0
GPIO Pin Status Register (Index 54h)
D14 0 D13 0 D12 0 D11 0 D10 0 D9 0 D8 0 D7 0 D6 0 D5 0 D4 0 D3 0 D2 0 D1 GI1 D0 GI0
GI[1:0]
GPIO Pin Status. This register reflects the state of all GPIO pin inputs and outputs. These values are also reflected in Slot 12 of every SDATA_IN frame. GPIO inputs configured as "sticky" are `cleared' by writing a `0' to the corresponding bit of this register. The GPIO_INT bit in input Slot 12 is `cleared' by clearing all interrupt-causing bits in this register. 0000h
Default
GPIO pins which have been programmed as inputs and "sticky", upon transition either high-to-low or low-to-high depending on pin polarity, will cause the individual GI bit to be `set', and remain `set' until `cleared'. GPIO pins which have been programmed as outputs are controlled either through output Slot 12 or through this register, depending on the state of the GPOC bit in the Misc. Crystal Control Register (Index 60h). If the GPOC bit is `cleared', the GI bits in this register are read-only and reflect the status of the corresponding GPIO output pin `set' through output slot 12. If the GPOC bit is `set', the GI bits in this register are read/write bits and control the corresponding GPIO output pins. The default value is always the state of the GPIO pin. The upper 14 bits of this register should be forced to zero in this register and input Slot 12.
34
DS483PP3
CS4201
4.23
D15 0
AC Mode Control Register (Index 5Eh)
D14 0 D13 0 D12 0 D11 D10 ASPM 0 D9 0 D8 D7 D6 DDM AMAP SPAS D5 SM1 D4
SM0
D3 0
D2 0
D1 0
D0 0
ASPM
Analog S/PDIF Mode. The ASPM bit controls the input source to the S/PDIF transmitter block. When `clear', the S/PDIF transmitter will receive data from the corresponding AC-link output slots. The actual slots are determined by the state of the SPAS bit. If `set', the S/PDIF transmitter block will receive data from the ADC output. DAC Direct Mode. The DDM bit controls the source of the line output drivers. When this bit is `clear', the CS4201 stereo output mixer drives the line output. When this bit is `set', the CS4201 audio DACs (DAC1 and DAC2) directly drive the line output. Audio Slot Mapping. The AMAP bit controls whether the CS4201 responds to the Codec ID based slot mapping as outlined in the AC '97 2.1 Specification. This bit is shadowed in the Extended Audio ID Register (Index 28h). Refer to Table 10 for the slot mapping configurations. Alternate S/PDIF Slot Mapping. The SPAS bit controls the mapping of output slots to the S/PDIF transmitter. If this bit is `clear' (default), the S/PDIF transmitter will receive data from the same slots as the DACs. If this bit is `set', alternate (independent) slots will be routed to the S/PDIF transmitter. The alternate slots are the same as the SDO2 slots in Table 10. Slot Map. The SM[1:0] bits define the Slot Mapping for the CS4201 when the AMAP bit is `cleared'. Refer to Table 10 for the slot mapping configurations. 0080h Codec ID Slot Assignment Mode Slot Map DAC ID1 ID0 SM1 SM0 AMAP SPDIF for SPAS = 0 L AMAP Mode 0 AMAP Mode 1 AMAP Mode 2 AMAP Mode 3 0 0 1 1 X X X X 0 1 0 1 X X X X X X X X 0 0 1 1 X X X X 0 1 0 1 1 1 1 1 0 0 0 0 3 3 7 6 3 7 6 5 R 4 4 8 9 4 8 9 11 SDOUT L 7 7 6 7 7 6 7 7 R 8 8 9 8 8 9 8 8 Slot Assignments SDO2 SPDIF for SPAS = 1 L 6 6 10 10 6 10 10 6 R 9 9 11 11 9 11 11 9 L 3 3 7 7 3 7 7 5 ADC R 4 4 8 8 4 8 8 6
DDM
AMAP
SPAS
SM[1:0] Default
Slot Map Mode 0 Slot Map Mode 1 Slot Map Mode 2 Slot Map Mode 3
Table 10. Slot Mapping for the CS4201
DS483PP3
35
CS4201
4.24
D15 0
Misc. Crystal Control Register (Index 60h)
D14 0 D13 0 D12 DPC D11 0 D10 0 D9 D8 Reserved D7 D6 10dB CRST D5 D4 Reserved D3 GPOC D2 D1 Reserved D0 0
DPC
DAC Phase Control. This bit controls the phase of the PCM stream sent to the DACs (after SRC). When `cleared' the phase of the signal will remain unchanged. When this bit is `set', each PCM sample will be inverted before being sent to the DACs. Microphone 10 dB Boost. When `set', the 10dB bit enables an additional boost of 10 dB on the selected microphone input. In combination with the 20dB boost bit in the Microphone Volume Register (Index 0Eh) this bit allows for variable boost from 0 dB to +30 dB in steps of 10 dB. Force Cold Reset. The CRST bit is used as an override to the New Warm Reset behavior defined during PR4 powerdown. If this bit is `set', an active RESET# signal will force a Cold Reset to the CS4201 during a PR4 powerdown. General Purpose Output Control. The GPOC bit specifies the mechanism by which the status of a General Purpose Output pin can be controlled. If this bit is `cleared', the GPO status is controlled through the standard AC '97 method of setting the appropriate bits in output Slot 12. If this bit is `set', the GPO status is controlled through the GPIO Pin Status Register (Index 54h). 0002h
10dB
CRST
GPOC
Default
36
DS483PP3
CS4201
4.25
D15 SPEN
S/PDIF Control Register (Index 68h)
D14 Val D13 0 D12 Fs D11 L D10 CC6 D9 CC5 D8 CC4 D7 CC3 D6 CC2 D5 CC1 D4 CC0 D3 Emph D2 D1 Copy /Audio D0 Pro
SPEN
S/PDIF Enable. The SPEN bit enables S/PDIF data transmission on the SPDO/SDO2 pin. The SPEN bit routes the left and right channel data from the AC '97 controller or the ADC output to the S/PDIF transmitter block. The actual data routed to the S/PDIF block is controlled through the ASPM/AMAP/SM[1:0]/SPAS configuration in the AC Mode Control Register (Index 5Eh). This bit can only be `set' if the SDO2 bit in the Serial Port Control Register (Index 6Ah) is `0'. If the SDO2 bit is `set', SPEN is a read-only bit and always returns `0'. Validity. The Val bit is mapped to the V bit (bit 28) of every sub-frame. If this bit is `clear', the signal is suitable for conversion or processing. Sample Rate. The Fs bit indicates the sampling rate for the S/PDIF data. The inverse of this bit is mapped to bit 25 of the channel status block. When the Fs bit is `clear', the sampling frequency is 48 kHz. When `set', the sampling frequency is 44.1 kHz. The actual rate at which S/PDIF data are being transmitted solely depends on the master clock frequency of the CS4201. The Fs bit is merely an indicator to the S/PDIF receiver. Generation Status. The L bit is mapped to bit 15 of the channel status block. For category codes 001xxxx, 0111xxx and 100xxxx, a value of `0' indicates original material and a value of `1' indicates a copy of original material. For all other category codes the definition of the L bit is reversed. Category Code. The CC[6:0] bits are mapped to bits 8-14 of the channel status block. Data Emphasis. The Emph bit is mapped to bit 3 of the channel status block. When `set', 50/15us filter pre-emphasis is indicated. When is `clear', no pre-emphasis is indicated. Copyright. The Copy bit is mapped to bit 2 of the channel status block. If the Copy bit is `set' copyright is not asserted and copying is permitted. Audio / Non-Audio. The /Audio bit is mapped to bit 1 of the channel status block. If the /Audio bit is `clear', the data transmitted over S/PDIF is assumed to be digital audio. If the /Audio bit is `set', non-audio data is assumed. Professional/Consumer. The Pro bit is mapped to bit 0 of the channel status block. If the Pro bit is `clear', consumer use of the audio control block is indicated. If the bit is `set', professional use is indicated. 0000h
Val Fs
L
CC[6:0] Emph Copy /Audio
Pro
Default
For a further discussion of the proper use of the channel status bits see application note AN22: Overview of Digital Audio Interface Data Structures [3].
DS483PP3
37
CS4201
4.26
D15 SDEN
Serial Port Control Register (Index 6Ah)
D14 0 D13 0 D12 0 D11 0 D10 0 D9 0 D8 0 D7 0 D6 0 D5 0 D4 0 D3 D2 D1 D0 SDO2 SDSC SDF1 SDF0
SDEN
Serial Data Output Enable. The SDEN bit enables transmission of serial data on the SDOUT pin. The SDEN bit routes the left and right channel data from the AC '97 controller to the serial data port. The actual data routed to the serial data port is controlled through the AMAP/SM[1:0] configuration in the AC Mode Control Register (Index 5Eh). SDEN also functions as a master control for the second serial data output port and the serial clock. This bit can only be `set' if the PRA bit in the Extended Modem Status and Control Register (index 3Eh) is `set'. If the PRA bit is `clear', SDEN is a read-only bit and always returns `0'. Serial Data Output 2 Enable. The SDO2 bit enables transmission of serial data on the SPDO/SDO2 pin. The SDO2 bit routes the left and right channel data from the AC '97 controller to the second serial data port. The actual slots routed to the second serial data port are controlled through the AMAP/SM[1:0] configuration in the AC Mode Control Register (Index 5Eh). This bit can only be `set' if the SDEN bit is `1' and will be `cleared' automatically if SDEN returns to `0'. Furthermore, the SDO2 bit can only be `set' if the SPEN bit in the S/PDIF Control Register (Index 68h) is `0'. If the SDEN bit is `0' or the SPEN bit is `1', SDO2 is a read-only bit and always returns `0'. Serial Clock Enable. The SDSC bit enables transmission of a serial clock on the EAPD/SCLK pin. Serial data can be routed to DACs that support internal SCLK mode without transmitting a serial clock. For DACs that only support external SCLK mode, transmission of a serial clock is required and this bit must be set to `1'. This bit can only be set if the SDEN bit is `1' and will be cleared automatically if SDEN returns to `0'. Furthermore, the SDSC bit can only be `set' if the EAPD bit in the Powerdown Control/Status Register (Index 26h) is `0'. If the SDEN bit is `0' or the EAPD bit is `1', SDSC is a read-only bit and always returns `0'. Serial Data Format. The SDF[1:0] bits control the format of the serial data transmitted on the two output ports. All ports will use the same format. See Table 11 for available formats. 0000h SDF1 SDF0 0 0 1 1 0 1 0 1 Serial Data Format I2S Left Justified Right Justified, 20-bit data Right Justified, 16-bit data
SDO2
SDSC
SDF[1:0] Default
Table 11. Serial Data Format Selection
38
DS483PP3
CS4201
4.27
D15 F7
Vendor ID1 Register (Index 7Ch)
D14 F6 D13 F5 D12 F4 D11 F3 D10 F2 D9 F1 D8 F0 D7 S7 D6 S6 D5 S5 D4 S4 D3 S3 D2 S2 D1 S1 D0 S0
F[7:0] S[7:0] Default
First Character of Vendor ID. With a value of F[7:0] = 43h, these bits define the ASCII `C' character. Second Character of Vendor ID. With a value of S[7:0] = 52h, these bits define the ASCII `R' character. 4352h. This register contains read-only data.
4.28
D15 T7
Vendor ID2 Register (Index 7Eh)
D14 T6 D13 T5 D12 T4 D11 T3 D10 T2 D9 T1 D8 T0 D7 0 D6 DID2 D5 DID1 D4 DID0 D3 1 D2 D1 D0 REV2 REV1 REV0
T[7:0] DID[2:0] REV[2:0] Default
Third Character of Vendor ID. With a value of T[7:0] = 59h, these bits define the ASCII `Y' character. Device ID. With a value of DID[2:0] = 100, these bits specify the audio codec is a CS4201. Revision. With a value of REV[2:0] = 001, these bits specify the audio codec revision is `A'. 594xh. This register contains read-only data.
The two Vendor ID registers provide a means to determine the manufacturer of the AC '97 audio codec. The first three bytes of the Vendor ID registers contain the ASCII code for the first three letters of Crystal (CRY). The final byte of the Vendor ID registers is divided into a Device ID field and a Revision field. Table 12 lists the currently defined Device ID's. DID2-DID0 000 001 010 011 100 101 110 Part Name CS4297 CS4297A CS4294/CS4298 CS4299 CS4201 CS4205 CS4291
Table 12. Device ID with Corresponding Part Number
DS483PP3
39
CS4201
5. SERIAL DATA PORTS 5.1 Overview
The CS4201 implements two serial data output ports that can be used for multi-channel expansion. Each serial port consists of 4 signals: MCLK, SCLK, LRCLK, and SDATA. The existing 256 Fs BIT_CLK will be used as MCLK. The clock pins are shared between all the serial ports with only the SDATA pins being separate; SDOUT for the first output port, and SDO2 for the second output port. Serial data is transmitted on these ports every AC-link frame. The serial data port is controlled by the SDEN, SDSC,and SDO2 bits in the Serial Port Control Register (Index 6Ah). All the serial data port pins are multiplexed with other functions and cannot be used unless the other function is disabled or powered down; see Section 7, Exclusive Functions. Some audio DACs can run in an internal SCLK mode where SCLK is internally derived from MCLK and LRCLK. In this case, SCLK generation in the CS4201 is optional. A feature has been designed into the CS4201 that allows the phase of the internal DACs to be reversed. This DAC phase reversal is controlled by the DPC bit in the Misc. Crystal Control Register
LINE_OUT_L LINE_OUT_R 35 36
(Index 60h). This feature is necessary since the phase response for external DACs is unknown and the phase response of the internal DACs can vary depending on the path determined by the POP bit in the General Purpose Register (Index 20h), the DDM bit in the AC Mode Control Register (Index 5Eh), and the output (LINE_OUT or HP_OUT) being used. This feature guarantees that all DACs in a system have the same phase response, maintaining the accuracy of spatial cues. Please note the data sent to the serial ports is straight from the AC-link. There is no SRC and no volume control available on this data, so it is the responsibility of the controller or host software to provide this functionality if desired.
5.2
Multi-Channel Expansion
For multi-channel expansion, the two serial data output ports are used to send AC-link data to one or two external stereo DACs to support up to a total of six channels. The first serial port takes the digital audio data from the SDOUT slots. The second serial port takes the digital audio data from the SDO2 slots. See Table 10 on page 35 for the actual slots used depending on configuration. Figure 10 shows a six channel application using the CS4201.
+ + 10uF ELEC 10uF ELEC 220K 220K Left Front Right Front
1000pF 1000pF AGND CS4334 GPIO1/SDOUT EAPD/SCLK GPIO0/LRCLK BIT_CLK SPDO/SDO2 44 47 43 6 48 1 8 SDATA AOUTL 2 DEM#/SCLK 3 LRCK 5 4 AOUTR MCLK 270K + + 270K 10uF ELEC 10uF ELEC 47K 560 560 Right Surround 47K AGND Left Surround
2700pF 2700pF AGND Center LFE
CS4334 1 8 SDATA AOUTL 2 DEM#/SCLK 3 LRCK 4 5 AOUTR MCLK
AGND + + 270K 270K 10uF ELEC 10uF ELEC
AGND 560 560 47K 47K
2700pF 2700pF AGND
AGND
AGND
Figure 10. Serial Data Port: Six Channel Circuit 40 DS483PP3
CS4201
5.3 Serial Data Formats
will be 64 Fs (BIT_CLK/4). Serial data is transitioned by the CS4201 on the falling edge of SCLK and latched by the DACs on the next rising edge. Serial data is shifted out MSB first in all supported formats, but LRCLK polarity as well as data justification, alignment, and resolution vary. Table 13 shows the principal characteristics of each serial format.
In order to support a wide variety of serial audio DACs, the CS4201 can transmit serial data in four different formats. The desired format is selected through the SDF[1:0] bits in the Serial Port Control Register (Index 6Ah). All serial ports use the same serial data format when enabled. In all cases, LRCLK will be synchronous with Fs, and SCLK
SDF[1:0]
00 01 10 11
LRCLK Data Data Alignment Data Timing Polarity Justification (MSB vs. LRCLK) Resolution Diagram
negative positive positive positive left justified left justified right justified right justified 1 SCLK delayed not delayed not delayed not delayed 20-bit 20-bit 20-bit 16-bit Figure 11 Figure 12 Figure 13 Figure 14
Recommended DAC
CS4334 CS4335 CS4337 CS4338
Table 13. Serial Data Formats and Compatible DACs for the CS4201
DS483PP3
41
CS4201
LRCK SCLK
Left Channel
Right Channel
SDATA
M B-1 -2 -3 -4 -5 S
+5 +4 +3 +2 +1 LSB
M B-1 -2 -3 -4 S
+5 +4 +3 +2 +1 LSB
Figure 11. Serial Data Format 0 (I2S)
LRCK SCLK
Left Channel
Right Channel
SDATA
M B-1 -2 -3 -4 -5 S
+5 +4 +3 +2 +1 LSB
M SB-1 -2 -3 -4
+5 +4 +3 +2 +1 LSB
Figure 12. Serial Data Format 1 (Left Justified)
LRCK
Left Channel
Right Channel
SCLK
SDATA
10
19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Figure 13. Serial Data Format 2 (Right Justified, 20-bit data)
LRCK
Left Channel
Right Channel
SCLK
SDATA
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Figure 14. Serial Data Format 3 (Right Justified, 16-bit data)
42
DS483PP3
CS4201
6. SONY/PHILIPS DIGITAL INTERFACE (S/PDIF)
The S/PDIF digital output is used to interface the CS4201 to consumer audio equipment external to the PC. This output provides an interface for storing digital audio data or playing digital audio data to digital speakers. Figure 15 illustrates the circuits necessary for implementing the IEC-958 optical or consumer interface. For further information on S/PDIF operation see application note AN22: Overview of Digital Audio Interface Data Structures [3]. For further information on S/PDIF recommended transformers see application note AN134: AES and S/PDIF Recommended Transformers [4].
SPDO/SDO2
S/PDIF_OUT
R1 R2 T1
J1 +5V_PCI 0.1 F
5
SPDO/SDO2 4 3 8.2 k 2 1
6
DGND
DVdd 3.3V 5V R1 247.5 375 R2 107.6 93.75
DGND
DGND
TOTX-173
DGND
Figure 15. S/PDIF Output
DS483PP3
43
CS4201
7. EXCLUSIVE FUNCTIONS
Some of the digital pins on the CS4201 have multiplexed functionality. These functions are mutually exclusive and cannot be requested at the same time. The following pairs of functions are mutually exclusive: * GPIO and Serial Data Port (GPIO0 pin is shared with LRCLK pin and GPIO1 pin is shared with SDOUT pin) EAPD and Serial Data Port Serial Clock (EAPD pin is shared with SCLK pin) S/PDIF and Second Serial Data Port (SPDO pin is shared with SDO2 pin) There is no priority assigned to the exclusive functions. A function currently in use must be disabled or powered down before the corresponding exclusive function can be enabled. The following control bits for these functions will behave differently than normal bits: the EAPD bit in the Powerdown Control/Status Register (Index 26h), the PRA bit in the Extended Modem Status/Control Register (Index 3Eh), the SPEN bit in the S/PDIF Control Register (Index 68h), and the SDEN, SDO2, and SDSC bits in the Serial Port Control Register (Index 6Ah). These bits can become read-only bits if they control a feature that is currently unavailable because the corresponding exclusive feature is already in use, or the corresponding master control for this feature is not set.
*
*
44
DS483PP3
CS4201
8. POWER MANAGEMENT 8.1 AC '97 Reset Modes
The CS4201 supports four reset methods, as defined in the AC '97 Specification: Cold Reset, Warm Reset, New Warm Reset, and Register Reset. A Cold Reset results in all AC '97 logic (registers included) initialized to its default state. A Warm Reset or New Warm Reset leaves the contents of the AC '97 register set unaltered. A Register Reset initializes only the AC '97 registers to their default states. mal BIT_CLK clock periods (162.8 ns) after the SYNC signal is de-asserted. A Warm Reset of the secondary codec is recognized when the primary codec on the AC-link resumes BIT_CLK generation. The CS4201 will wait for BIT_CLK to be stable to restore SDATA_IN activity, S/PDIF and/or serial data port transmission on the following frame.
8.1.3
New Warm Reset
8.1.1
Cold Reset
A Cold Reset is achieved by asserting RESET# for a minimum of 1 s after the power supply rails have stabilized. This is done in accordance with the minimum timing specifications in the AC '97 Serial Port Timing section on page 10. Once de-asserted, all of the CS4201 registers will be reset to their default power-on states and the BIT_CLK and SDATA_IN signals will be reactivated.
The New Warm Reset also allows the AC-link to be reactivated without losing information in the registers. A New Warm Reset is required to resume from a D3cold state where AC-link power has been removed. New Warm Reset is recognized by the low-high transition of RESET# after the AC-link has been programmed into PR4 powerdown. The New Warm Reset functionality can be disabled by setting the CRST bit in the Misc. Crystal Control Register (Index 60h).
8.1.4
Register Reset
8.1.2
Warm Reset
A Warm Reset allows the AC-link to be reactivated without losing information in the CS4201 registers. A Warm Reset is required to resume from a D3hot state where the AC-link had been halted yet full power had been maintained. A primary codec Warm Reset is initiated when the SYNC signal is driven high for at least 1 s and then driven low in the absence of the BIT_CLK clock signal. The BIT_CLK clock will not restart until at least 2 nor-
The last reset mode provides a Register Reset to the CS4201. This is available only when the CS4201 AC-link is active and the Codec Ready bit is `set'. The audio (including extended audio) control registers (Index 00h - 3Ah) and the vendor specific registers (Index 5Ah - 7Ah) are reset to their default states by a write of any value to the Reset Register (Index 00h). The modem (including GPIO) registers (Index 3Ch - 56h) are reset to their default states by a write of any value to the Extended Modem ID Register (Index 3Ch).
DS483PP3
45
CS4201
8.2 Powerdown Controls
systems continue to function. The required resume sequence from a PR4 state is either a Warm Reset or a New Warm Reset, depending on whether a D3hot or D3cold state has been entered. The PR5 bit disables all internal clocks and powers down the DACs and the ADCs, but maintains operation of the BIT_CLK and the analog mixer. A Cold Reset is the only way to restore operation to the CS4201 after asserting PR5. To achieve a complete digital powerdown, PR4 and PR5 must be asserted within a single AC output frame. This will also drive BIT_CLK `low'. The CS4201 does not automatically mute any input or output when the powerdown bits are `set'. The software driver controlling the AC '97 device must manage muting the input and output analog signals before putting the part into any power management state. The definition of each PRx bit may affect a single subsection or a combination of subsections within the CS4201. Table 15 contains the matrix of subsections affected by the respective PRx function. Table 16 shows the different operating power consumptions levels for different powerdown functions.
The Powerdown Control/Status Register (Index 26h) controls the power management functions. The PR[6:0] bits in this register control the internal powerdown states of the CS4201. Powerdown control is available for individual subsections of the CS4201 by asserting any PRx bit or any combination of PRx bits. All powerdown states except PR4 and PR5 can be resumed by clearing the corresponding PRx bit. Table 14 shows the mapping of the power control bits to the functions they manage. When PR0 is `set', the L/R ADCs and the Input Mux are shut down and the ADC bit in the Powerdown Control/Status Register (Index 26h) is `cleared' indicating the ADCs are no longer in a ready state. The same is true for PR1 and the DACs, PR2 and the analog mixer, PR3 and the voltage reference (Vrefout), and PR6 and the headphone amplifier. When one of these bits is `cleared', the corresponding subsystem will begin a power-on process, and the associated status bit will be `set' when the hardware is ready. In a primary codec the PR4 bit powers down the AC-link, but all other analog and digital sub-
PR Bit PR0 PR1 PR2 PR3 PR4 PR5 PR6
Function L/R ADCs and Input Mux Powerdown Front DACs Powerdown Analog Mixer Powerdown (Vref on) Analog Mixer Powerdown (Vref off) AC-link Powerdown (BIT_CLK off)* Internal Clock Disable Headphone Out Powerdown
* Applies only to primary codec Table 14. Powerdown PR Bit Functions
46
DS483PP3
CS4201
PR Bit PR0 PR1 PR2 PR3 PR4 PR5 PR6
ADCs
DACs
Mixer
Analog Reference
AC Link
Internal Clock Off
Headphone
* * * * * * * * * * * * * * *
Table 15. Powerdown PR Function Matrix for the CS4201
*
Power State Full Power + SRC's Full Power + S/PDIF 1 HP 2 Full Power +
IDVdd (mA) [DVdd=3.3 V] 27.1 31.9 26.3 26.3 23.4 24.5 21.5 21.2 26.3 20.9 3.8 14 A 14 A 1.5 A
IDVdd (mA) [DVdd=5 V] 44.3 48.7 42.7 42.7 38.1 39.3 34.1 34.1 42.7 35.2 6.4 28 A 28 A 8 A
IAVdd1 (mA) 34.9 34.9 34.9 34.9 26.0 28.3 2.9 2.8 33.1 34.9 19.8 19.8 2.3 2.9
IAVdd2 (mA) 5.6 5.6 40.6 5.6 5.6 5.6 0.8 A 0.8 A 27 A 5.6 5.6 5.6 0.5 A 0.8 A
Full Power ADCs off (PR0) DACs off (PR1) Audio off (PR2) Vref off (PR3) HP amp off (PR6) AC-Link off (PR4) Internal Clocks off (PR5) Digital off (PR4+PR5) PR3+PR4+PR5 RESET
1
Table 16. Power Consumption by Powerdown Mode for the CS4201
Assuming standard resistive load for transformer coupled coaxial S/PDIF output (Rload = 292 Ohm, DVdd = 3.3 V) (Rload = 415 Ohm, DVdd = 5 V). General: IDVdd S/PDIF = IDVdd + DVdd/Rload/2 2 HP_OUT_L, HP_OUT_R driving 4 Vpp into 32 Ohm resistive load.
DS483PP3
47
CS4201
9. CLOCKING
The CS4201 may be operated as a primary or secondary codec. As a primary codec, the system clock for the AC-link may be generated from an external 24.576 MHz clock source, a 24.576 MHz crystal, or use the internal Phase Locked Loop (PLL). The PLL allows the CS4201 to accept external clock frequencies other than 24.576 MHz. The CS4201 uses the presence or absence of a valid clock on the XTL_IN pin in conjunction with the ID[1:0]# pins to determine the clocking configuration.
9.3
Secondary Codec Operation
If a valid clock is not present on XTL_IN and either ID[1:0]# input is pulled low during the rising edge of RESET#, the device is determined to be a secondary codec. The BIT_CLK pin is configured as an input and the CS4201 is driven from the 12.288 MHz BIT_CLK of the primary codec. The ID[1:0] bits of the Extended Audio ID Register (Index 28h) and the Extended Modem ID Register (Index 3Ch) will report the state of the ID[1:0]# inputs.
Clock Source XTL_IN XTL_OUT 2.2 k 0.022 uF
9.1
PLL Operation (External Clock)
The PLL mode is activated if a valid clock is present on XTL_IN during the rising edge of RESET#. Once PLL mode is entered, the XTL_OUT pin is redefined as the PLL loop filter, as shown in Figure 16. The ID[1:0]# inputs determine the configuration of the internal divider ratios required to generate the 12.288 MHz BIT_CLK output; see Table 17 on page 49 for additional details. In PLL mode, the CS4201 is configured as a primary codec independent of the state of the ID[1:0]# pins. If 24.576 MHz is chosen as the external clock input (ID[1:0]# inputs both pulled high or left floating), the PLL is disabled and the clock is used directly. The loop filter is not required and XTL_OUT is left unconnected. For all other clock input choices, the loop filter is required. The ID[1:0] bits of the Extended Audio ID Register (Index 28h) and the Extended Modem ID Register (Index 3Ch) will always report 0 in PLL mode.
220 pF
DGND
Figure 16. PLL External Loop Filter
XTL_IN XTL_OUT
24.576 MHz 22 pF 22 pF
9.2
24.576 MHz Crystal Operation
If a valid clock is not present on XTL_IN during the rising edge of RESET#, the device disables the PLL input and latches the state of the ID[1:0]# inputs. If the ID[1:0]# inputs are both pulled high or left floating, the device is configured as a primary codec. An external 24.576 MHz crystal is used as the system clock as shown in Figure 17.
48
DGND
Figure 17. External Crystal
DS483PP3
CS4201
External Clock on ID1# ID0# XTL_IN
Yes Yes Yes Yes No No No No 1 1 0 0 1 1 0 0 1 0 1 0 1 0 1 0
AC-Link Timing Mode
Primary Primary Primary Primary Primary Secondary Secondary Secondary
Codec ID
0 0 0 0 0 1 2 3
Clock Source
Clock Rate (MHz)
PLL Active
No Yes Yes Yes No No No No
Application Notes
clock generator driving XTL_IN external clock source driving XTL_IN loop filter connected to XTL_OUT crystal connected to XTL_IN, XTL_OUT BIT_CLK from primary codec driving BIT_CLK on all secondary codecs
External 24.576 External 14.31818 External 27.000 External 48.000 XTAL 24.576 BIT_CLK 12.288 BIT_CLK 12.288 BIT_CLK 12.288
Table 17. Clocking Configurations for the CS4201
DS483PP3
49
CS4201
10. ANALOG HARDWARE DESCRIPTION
The analog input section consists of four stereo line-level inputs (LINE_L/R, CD_L/GND/R, VIDEO_L/R, and AUX_L/R), two selectable mono microphone inputs (MIC1 and MIC2), and two mono inputs (PC_BEEP and PHONE). The analog output section consists of a mono output (MONO_OUT), a stereo headphone output (HP_OUT_L/R), and a stereo line-level output (LINE_OUT_L/R). This section describes the analog hardware needed to interface with these pins. The designs presented in this section are compliant with Chapter 17 of Microsoft's PC 99 System Design Guide [7] (referred to as PC 99) and Chapter 11 of Microsoft's PC 2001 System Design Guide [8] (referred to as PC 2001). For information on EMI reduction techniques refer to the application note AN165: CS4297A/CS4299 EMI Reduction Techniques [5]. for both CD_L and CD_R. This pin takes the common-mode noise out of the CD inputs when connected to the CD analog source ground. Following the reference designs in Figure 19 and Figure 20 provides extra attenuation of common mode noise coming from the CD-ROM drive, thereby producing a higher quality signal. One percent resistors are recommended since closely matched resistor values provide better common-mode attenuation of unwanted signals. The circuit shown in Figure 19 can be used to attenuate a 2 VRMS CD input signal by 6 dB. The circuit shown in Figure 20 can be used for a 1 VRMS CD input signal.
6.8 k 6.8 k 1.0 F 1.0 F
LINE_IN_R LINE_IN_L
AGND
6.8 k
6.8 k
AGND
10.1
Analog Inputs
Figure 18. Line Input (Replicate for Video and AUX)
All analog inputs to the CS4201, including CD_GND, should be capacitively coupled to the input pins. Unused analog inputs should be tied together and connected through a capacitor to analog ground or tied to the Vrefout pin directly. The maximum allowed voltage for analog inputs, except the microphone input, is 1 VRMS. The maximum allowed voltage for the microphone input depends on the selected boost setting.
CD_R CD_L CD_COM
6.8 k 6.8 k 3.4 k 6.8 k (All resistors 1%) 6.8 k
1.0 F 1.0 F 2.2 F CD_R CD_L CD_GND 3.4 k
AGND
Figure 19. Differential 2 VRMS CD Input
10.1.1 Line Inputs
Figure 18 shows circuitry for a line-level stereo input. Replicate this circuit for the Line, Video and Aux inputs. This design attenuates the input by 6 dB, bringing the signal from the PC 99 specified 2 VRMS, to the CS4201 maximum allowed 1 VRMS.
CD_R CD_L CD_COM
100 100 100 1.0 F 1.0 F 2.2 F
CD_R CD_L CD_GND
47 k
47 k
47 k
10.1.2 CD Input
The CD line-level input has an extra pin, CD_GND, providing a pseudo-differential input
50
AGND
Figure 20. Differential 1 VRMS CD Input
DS483PP3
CS4201
10.1.3 Microphone Inputs
Figure 21 illustrates an input circuit suitable for dynamic and electret microphones. Electret, also known as phantom-powered, microphones use the right channel (ring) of the jack for power. The design also supports the recommended advanced frequency response for voice recognition as specified in PC 99 and PC 2001. The microphone input of the CS4201 has an integrated pre-amplifier. Using combinations of the 10dB bit in the Misc. Crystal Control Register (Index 60) and the 20dB bit in the Mic Volume Register (Index 0Eh) the pre-amplifier gain can be set to 0 dB, 10 dB, 20 dB, or 30 dB. "beeper", it is of the same high-quality as all other analog inputs and may be used for other purposes.
10.1.5 Phone Input
One application of the PHONE input is to interface to the output of a modem analog front end (AFE) device so that modem dialing signals and protocol negotiations may be monitored through the audio system. Figure 23 shows a design for a modem connection where the output is fed from the CS4201 MONO_OUT pin through a divider. The divider ratio shown does not attenuate the signal, providing an output voltage of 1 VRMS. If a lower output voltage is desired, the resistors can be replaced with appropriate values, as long as the total load on the output is kept greater than 10 k. The PHONE input is divided by 6 dB to accommodate a line-level source of 2 VRMS.
10.1.4 PC Beep Input
The PC_BEEP input is useful for mixing the output of the "beeper" (timer chip), provided in most PCs, with the other audio signals. When the CS4201 is held in reset, PC_BEEP is passed directly to the line output. This allows the system sounds or "beeps" to be available before the AC '97 interface has been activated. Figure 22 illustrates a typical input circuit for the PC_BEEP input. If PC_BEEP is driven from a CMOS gate, the 4.7 k resistor should be tied to analog ground instead of +5VA. Although this input is described for a low-quality
+5VA (Low Noise) or AGND if CMOS Source 4.7 k 47 k PC-BEEP-BUS 2.7 nF
X7R AGND
PC_BEEP
0.1 F
X7R
Figure 22. PC_BEEP Input
+5VA 1.5 k
+
2.2 k
10 F
ELEC AGND
0.1 F
X7R
6.8 k PHONE
1.0 F 1.0 F PHONE MONO_OUT 6.8 k 1000 pF AGND
100
MIC1/MIC2 0.1 F
X7R AGND
MONO_OUT
0
AGND
47 k
AGND
Figure 21. Microphone Input
Figure 23. Modem Connection
DS483PP3
51
CS4201
10.2 Analog Outputs 10.2.2 Mono Output
The mono output, MONO_OUT, can be either a sum of the left and right output channels, attenuated by 6 dB to prevent clipping at full scale, or the selected Mic signal. The mono out channel can drive the PC internal mono speaker using an appropriate buffer circuit
The analog output section provides a stereo, a headphone, and a mono output. The MONO_OUT, LINE_OUT_L, and LINE_OUT_R pins require 680 pF to 1000 pF NPO dielectric capacitors between the corresponding pin and analog ground. Each analog output is DC-biased up to the Vrefout voltage signal reference, nominally 2.4 V. This requires the outputs be AC-coupled to external circuitry (AC loads must be greater than 10 k for the line output or 32 for the headphone output). The headphone coupling capacitors should be 220 F or greater to minimize low frequency roll-off.
10.3
Miscellaneous Analog Signals
10.2.1 Stereo Outputs
The LINE_OUT and HP_OUT stereo outputs depend on the configuration of the HPCFG pin. As shown in Figure 24, if the HPCFG pin is left floating, the part behaves as specified in AC '97. As shown in Figure 25, if the HPCFG pin is grounded, the part behaves as if HP_OUT was the only output. In this case, LINE_OUT will be muted, the Master Volume Register (Index 02h) will control HP_OUT and PC_BEEP will be routed to HP_OUT during RESET.
10 F ELEC 10 F ELEC 220 k Line Out Jack
The AFLT1 and AFLT2 pins must have a 1000 pF NPO capacitor to analog ground. These capacitors provide a single-pole low-pass filter at the inputs to the ADCs. This makes low-pass filters at each analog input pin unnecessary. The REFFLT pin must have a short, wide trace to a 2.2 F and a 0.1 F capacitor connected to analog ground (see Figure 27 in Section 11, Grounding and Layout, for an example). The 2.2 F capacitor must not be replaced by any other value and must be ceramic with low leakage current. Electrolytic capacitors should not be used. No other connection should be made, as any coupling onto this pin will degrade the analog performance of the CS4201. Likewise, digital signals should be kept away from REFFLT for similar reasons.
LINE_OUT_R LINE_OUT_L
+
+
220 k 1000 pF 1000 pF
LINE_OUT_R LINE_OUT_L
AGND AGND
220 F ELEC 220 F ELEC 1 F ELEC 10 k 10 k Line Out/ Headphone Jack
AGND
HP_OUT_R HP_OUT_L HP_OUT_C HPCFG
+
220 F ELEC 220 F ELEC 1 F ELEC 10 k
Headphone Jack
HP_OUT_R HP_OUT_L HP_OUT_C
+
+
+
+
+
10 k
HPCFG
AGND AGND AGND
AGND
AGND
Figure 24. Line Out and Headphone Out Setup
Figure 25. Line Out/Headphone Out Setup
52
DS483PP3
CS4201
10.4 Power Supplies
the digital interface on the CS4201 may operate at either +3.3 V or +5 V, proper connection of these pins will depend on the digital power supply of the controller.
The power supplies providing analog power should be as clean as possible to minimize coupling into the analog section which could degrade analog performance. One analog power pin, AVdd2, supplies power to the headphone amplifier on the CS4201. The other analog power pin, AVdd1, supplies power to the rest of the CS4201 analog circuitry. The +5 V analog supply should be generated from a voltage regulator (7805 type) connected to a +12 V supply. This helps isolate the analog circuitry from noise typically found on +5 V digital supplies. A typical voltage regulator circuit for analog power using a MC78M05CDT +5V regulator is shown in Figure 26. The digital power pins, DVdd1 and DVdd2, should be connected to the same digital supply as the controller's AC-link interface. Since
10.5
Reference Design
See Section 14 for a CS4201 reference design.
+12VD MC78M05CDT
1
+
+5VA
IN GND
OUT
3
+
0.1 F Y5V
10 F ELEC
2
0.1 F Y5V
10 F ELEC
DGND
AGND
Figure 26. +5V Analog Voltage Regulator
DS483PP3
53
CS4201
11. GROUNDING AND LAYOUT
Figure 27 shows the conceptual layout for the CS4201 in XTAL or OSC clocking modes. The decoupling capacitors should be located physically as close to the pins as possible. Also, note the connection of the REFFLT decoupling capacitors to the ground return trace connected directly to the ground return pin, AVss1. It is strongly recommended that separate analog and digital ground planes be used. Separate ground planes keep digital noise and return currents from modulating the CS4201 ground potential and degrading performance. The digital ground pins should be connected to the digital ground plane and kept separate from the analog ground connections of the CS4201 and any other external analog circuitry. All analog components and traces should be located over the analog ground plane and all digital components and traces should be located over the digital ground plane. The common connection point between the two ground planes (required to maintain a common ground voltage potential) should be located under the CS4201. The AC-link digital interface connection traces should be routed such that the digital ground plane lies underneath these signals (on the internal ground layer). This applies along the entire length of these traces from the AC '97 controller to the CS4201. Refer to the Application Note AN18: Layout and Design Rules for Data Converters and Other Mixed Signal Devices [2] for more information on layout and design rules.
54
DS483PP3
CS4201
1000 pF NPO
Vrefout toVia
Via to +5VA
2.2F
0.1 F Y5V
Via to +5VA
AFLT1 AVss1 REFFLT AVdd1
AFLT2
0.1 F Y5V
AVdd2
Via to Analog Ground Via to Analog Ground
Analog Ground
AVss2 Digital Ground
Via to Digital Ground
Pin 1 0.1 F Y5V DVss1
DVdd1
DVss2
0.1 F Y5V
DVdd2
Via to +5VD or +3.3VD Via to +5VD or +3.3VD
Figure 27. Conceptual Layout for the CS4201 when in XTAL or OSC Clocking Modes
DS483PP3
55
CS4201
12. PIN DESCRIPTIONS
GPIO1/SDOUT
GPIO0/LRCLK
SPDO/SDO2
48
47
46
45
44
43
42
41
40
39
38
37
DVdd1 XTL_IN XTL_OUT DVss1 SDATA_OUT BIT_CLK DVss2 SDATA_IN DVdd2 SYNC RESET# PC_BEEP
1 2 3 4 5 6 7 8 9 10 11 12
MONO_OUT
EAPD/SCLK
HP_OUT_R
HP_OUT_C
HP_OUT_L
AVdd2
AVss2
ID1#
ID0#
36 35 34 33 32
LINE_OUT_R LINE_OUT_L FLTO FLTI FLT3D HPCFG AFLT2 AFLT1 Vrefout REFFLT AVss1 AVdd1
CS4201
31 30 29 28 27 26 25
13 PHONE
14 AUX_L
15 AUX_R
16 VIDEO_L
17 VIDEO_R
18 CD_L
19 CD_GND
20 CD_R
21 MIC1
22 MIC2
23 LINE_IN_L
24 LINE_IN_R
Figure 28. Pin Locations for the CS4201
56
DS483PP3
CS4201
Audio I/O Pins
PC_BEEP - Analog Mono Source, Input, Pin 12 The PC_BEEP input is intended to allow the PC system POST (Power On Self-Test) tones to pass through to the audio subsystem. The PC_BEEP input has two connections: the first connection is to the analog output mixer, the second connection is directly to the LINE_OUT stereo outputs (if HPCFG is floating) or through the headphone amplifier to the HP_OUT pins (if HPCFG is tied low). While the RESET# pin is actively being asserted to the CS4201, the PC_BEEP bypass path to the LINE_OUT outputs is enabled. While the CS4201 is in normal operation mode with RESET# de-asserted, PC_BEEP is a monophonic source to the analog output mixer. The maximum allowable input is 1 VRMS (sinusoidal). This input is internally biased at the Vrefout voltage reference and requires AC-coupling to external circuitry. If this input is not used, it should be connected to the Vrefout pin or AC-coupled to analog ground. PHONE - Analog Mono Source, Input, Pin 13 This analog input is a monophonic source to the output mixer. It is intended to be used as a modem subsystem input to the audio subsystem. The maximum allowable input is 1 VRMS (sinusoidal). This input is internally biased at the Vrefout voltage reference and requires AC-coupling to external circuitry. If this input is not used, it should be connected to the Vrefout pin or AC-coupled to analog ground. MIC1 - Analog Mono Source, Input, Pin 21 This analog input is a monophonic source to the analog output mixer. It is intended to be used as a desktop microphone connection to the audio subsystem. The CS4201 internal mixer's microphone input is MUX selectable with either MIC1 or MIC2 as the input. The maximum allowable input is 1 VRMS (sinusoidal). This input is internally biased at the Vrefout voltage reference and requires AC-coupling to external circuitry. If this input is not used, it should be connected to the Vrefout pin or AC-coupled to analog ground. MIC2 - Analog Mono Source, Input, Pin 22 This analog input is a monophonic source to the analog output mixer. It is intended to be used as an alternate microphone connection to the audio subsystem. The CS4201 internal mixer's microphone input is MUX selectable with either MIC1 or MIC2 as the input. The maximum allowable input is 1 VRMS (sinusoidal). This input is internally biased at the Vrefout voltage reference and requires AC-coupling to external circuitry. If this input is not used, it should be connected to the Vrefout pin or AC-coupled to analog ground. LINE_IN_L, LINE_IN_R - Analog Line Source, Inputs, Pins 23 and 24 These inputs form a stereo input pair to the CS4201. The maximum allowable input is 1 VRMS (sinusoidal). These inputs are internally biased at the Vrefout voltage reference and require AC-coupling to external circuitry. If these inputs are not used, they should both be connected to the Vrefout pin or AC-coupled to analog ground. CD_L, CD_R - Analog CD Source, Inputs, Pins 18 and 20 These inputs form a stereo input pair to the CS4201. It is intended to be used for the Red Book CD audio connection to the audio subsystem. The maximum allowable input is 1 VRMS (sinusoidal). These inputs are internally biased at the Vrefout voltage reference and require AC-coupling to external circuitry. If these inputs are not used, they should both be connected to the Vrefout pin or AC-coupled to analog ground. CD_GND - Analog CD Common Source, Input, Pin 19 DS483PP3 57
CS4201
This analog input is used to remove common mode noise from Red Book CD audio signals. The impedance on the input signal path should be one half the impedance on the CD_L and CD_R input paths. This pin requires AC-coupling to external circuitry. If this input is not used, it should be connected to the Vrefout pin or AC-coupled to analog ground.
58
DS483PP3
CS4201
VIDEO_L, VIDEO_R - Analog Video Audio Source, Inputs, Pins 16 and 17 These inputs form a stereo input pair to the CS4201. It is intended to be used for the audio signal output of a video device. The maximum allowable input is 1 VRMS (sinusoidal). These inputs are internally biased at the Vrefout voltage reference and require AC-coupling to external circuitry. If these inputs are not used, they should both be connected to the Vrefout pin or AC-coupled to analog ground. AUX_L, AUX_R - Analog Auxiliary Source, Inputs, Pins 14 and 15 These inputs form a stereo input pair to the CS4201. The maximum allowable input is 1 VRMS (sinusoidal). These inputs are internally biased at the Vrefout voltage reference and require AC-coupling to external circuitry. If these inputs are not used, they should both be connected to the Vrefout pin or AC-coupled to analog ground. LINE_OUT_L, LINE_OUT_R - Analog Line-Level, Outputs, Pins 35 and 36 These signals are analog outputs from the stereo output mixer. The full-scale output voltage for each output is nominally 1 VRMS (sinusoidal). These outputs are internally biased at the Vrefout voltage reference and require either AC-coupling to external circuitry or DC-coupling to a buffer op-amp biased at the Vrefout voltage. These pins need a 680-1000 pF NPO capacitor attached to analog ground. HP_OUT_L, HP_OUT_R - Analog Headphone, Outputs, Pins 39 and 41 These signals are analog outputs from the stereo output mixer. The full-scale output voltage for each output is nominally 4 Vpp. These outputs are internally biased at the Vrefout voltage reference and require AC-coupling to external circuitry. The HP_OUT pins can directly drive resistive loads as low as 32 (such as standard consumer headphones). Capacitive loading must not exceed 200 pF per pin. The outputs are short circuit protected for infinite duration. HP_OUT_C - Analog Headphone Output Common Source, Input, Pin 40 This analog input is used to remove common mode noise from the headphone outputs. This is achieved by biasing the headphone amplifier with the common mode noise on the headphone amplifier ground plane. This pin should be AC-coupled through a 1 F electrolytic capacitor to analog ground (AVss2) near the headphone jack. MONO_OUT - Analog Mono Line-Level, Output, Pin 37 This signal is an analog output from the stereo-to-mono mixer. The full-scale output voltage for this output is nominally 1 VRMS (sinusoidal). This output is internally biased at the Vrefout voltage reference and requires either AC-coupling to external circuitry or DC-coupling to a buffer op-amp biased at the Vrefout voltage. This pin needs a 680-1000 pF NPO capacitor attached to analog ground.
Analog Reference, Filter, and Configuration Pins
REFFLT - Internal Reference Voltage, Input, Pin 27 This signal is the voltage reference used internal to the CS4201. A 0.1 F and a 2.2 F ceramic capacitor with short, wide traces must be connected to this pin. No other connections should be made to this pin. Do not use an electrolytic 2.2 F capacitor, use a type Z5U or Y5V ceramic capacitor. Vrefout - Voltage Reference, Output, Pin 28 All analog inputs and outputs are centered around Vrefout, nominally 2.4 Volts. This pin may be used to bias external amplifiers. It can also drive up to 5 mA of DC which can be used for microphone bias. DS483PP3 59
CS4201
AFLT1 - Left ADC Channel Antialiasing Filter, Input, Pin 29 This pin needs a 1000 pF NPO capacitor connected to analog ground. AFLT2 - Right ADC Channel Antialiasing Filter, Input, Pin 30 This pin needs a 1000 pF NPO capacitor connected to analog ground. FLTI, FLTO - Filter Input/Filter Output, Pins 33 and 34 A 1000 pF capacitor must be attached between FLTI and FLTO if the 3D function is used. FLT3D - 3D Filter, Pin 32 A 0.01 F X7R capacitor must be attached from this pin to AGND if the 3D function is used. HPCFG - Headphone Configuration, Input, Pin 31 This pin is the configuration control for the signal routing to the headphone amplifier. If this pin is left floating, the LINE_OUT and HP_OUT pins function as defined in the AC '97 specification. If the HPCFG pin is grounded, the HP_OUT pins behave as a buffered line output. In addition, the LINE_OUT pins are muted, the control register for the headphone output will be the Master Output Volume Register (Index 02h), and PC_BEEP is routed to the HP_OUT pins during RESET. The HPCFG pin is internally pulled up to the analog supply voltage.
AC-Link Pins
RESET# - AC '97 Chip Reset, Input, Pin 11 This active low signal is the asynchronous Cold Reset input to the CS4201. The CS4201 must be reset before it can enter normal operating mode. SYNC - AC-Link Serial Port Sync pulse, Input, Pin 10 SYNC is the serial port timing signal for the AC-link. Its period is the reciprocal of the maximum sample rate, 48 kHz. The signal is generated by the controller and is synchronous to BIT_CLK. SYNC is an asynchronous input when the CS4201 is configured as a primary codec and is in a PR4 powerdown state. A series terminating resistor of 47 should be connected on this signal close to the controller. BIT_CLK - AC-Link Serial Port Master Clock, Input/Output, Pin 6 This input/output signal controls the master clock timing for the AC-link. In primary mode, this signal is a 12.288 MHz output clock derived from either a 24.576 MHz crystal or from the internal PLL based on the XTL_IN input clock. When the CS4201 is in secondary mode, this signal is an input which controls the AC-link serial interface and generates all internal clocking including the AC-link serial interface timing and the analog sampling clocks. A series terminating resistor of 47 should be connected on this signal close to the CS4201 in primary mode or close to the BIT_CLK source in secondary mode. SDATA_OUT - AC-Link Serial Data Input Stream to AC '97, Input, Pin 5 This input signal receives the control information and digital audio output streams. The data is clocked into the CS4201 on the falling edge of BIT_CLK. A series terminating resistor of 47 should be connected on this signal close to the controller. SDATA_IN - AC-Link Serial Data Output Stream from AC '97, Output, Pin 8 This output signal transmits the status information and digital audio input streams from the ADCs. The data is clocked out of the CS4201 on the rising edge of BIT_CLK. A series terminating resistor of 47 should be connected on this signal close to the CS4201. 60 DS483PP3
CS4201
Clock and Configuration Pins
XTL_IN - Crystal Input/Clock Input, Pin 2 This pin requires either a 24.576 MHz crystal, with the other pin attached to XTL_OUT, or an external CMOS clock. XTL_IN must have a crystal or clock source attached for proper operation except when operating in secondary codec mode. The crystal frequency must be 24.576 MHz and designed for fundamental mode, parallel resonance operation. If an external CMOS clock is used to drive this pin, it must run at one of these acceptable frequencies: 14.31818. 24.576, 27, or 48 MHz. When configured as a secondary codec, all timing is derived from the BIT_CLK input signal and this pin should be left floating. See Section 9, Clocking, for additional details. XTL_OUT - Crystal Output/ PLL Loop Filter, Pin 3 This pin is used for a crystal placed between this pin and XLT_IN. If an external 24.576 MHz clock is used on XTL_IN, this pin must be left floating with no traces or components connected to it. If one of the other acceptable clocks is used on XTL_IN, this pin must be connected to a loop filter circuit. See Section 9, Clocking, for additional details. ID1#, ID0# - Codec ID, Inputs, Pins 45 and 46 These pins select the Codec ID for the CS4201, as well as determine the rate of the incoming clock in PLL mode. They are only sampled after the rising edge of RESET#. These pins are internally pulled up to the digital supply voltage and should be left floating for logic `0' or tied to digital ground for logic `1'.
Misc. Digital Interface Pins
SPDO/SDO2 - Sony/Philips Digital Interface / Serial Data Output 2,Output, Pin 48 This pin generates the S/PDIF digital output from the CS4201 when the SPEN bit in the S/PDIF Control Register (Index 68h) is `set'. This output may be used to directly drive a resistive divider and coupling transformer to an RCA-type connector for use with consumer audio equipment. This pin also provides the serial data for the second serial data port when the SDO2 bit in the Serial Port Control Register (Index 6Ah) is `set'. These two functions are mutually exclusive. When neither function is being used this output is driven to a logic `0'. EAPD/SCLK - External Amplifier Powerdown / Serial Clock, Output, Pin 47 This pin is used to control the powerdown state of an audio amplifier external to the CS4201. The output is controlled by the EAPD bit in the Powerdown Ctrl/Stat Register (Index 26h). It is driven as a normal CMOS output and defaults low (`0') upon power-up. This pin also provides the serial clock for both serial data ports when the SDSC bit in the Serial Port Control Register (Index 6Ah) is `set'. GPIO0/LRCLK - General Purpose I/O / Left-Right Clock, Input/Output, Pin 43 This pin is a general purpose I/O pin that can be used to interface with various external circuitry. When configured as an input, it functions as a Schmitt triggered input with 350 mV hysteresis at 5 V and 220 mV hysteresis at 3.3 V. When configured as an output, it can function as a normal CMOS output (4 mA drive) or as an open drain output. This pin also provides the L/R clock for both serial data ports when the SDEN bit in the Serial Port Control Register (Index 6Ah) is `set'. This bit powers up in the high impedance state for backward compatibility. DS483PP3 61
CS4201
GPIO1/SDOUT - General Purpose I/O / Serial Data Ouput, Input/Output, Pin 44 This pin is a general purpose I/O pin that can be used to interface with various external circuitry. When configured as an input, it functions as a Schmitt triggered input with 350 mV hysteresis at 5 V and 220 mV hysteresis at 3.3 V. When configured as an output, it can function as a normal CMOS output (4 mA drive) or as an open drain output. This pin also provides the serial data for the first serial data port when the SDEN bit in the Serial Port Control Register (Index 6Ah) is `set'. This bit powers up in the high impedance state for backward compatibility.
Power Supply Pins
DVdd1, DVdd2 - Digital Supply Voltage, Pins 1 and 9 Digital supply voltage for the AC-link section of the CS4201. These pins can be tied to +5 V digital or to +3.3 V digital. The CS4201 and controller's AC-link should share a common digital supply. DVss1, DVss2 - Digital Ground, Pins 4 and 7 Digital ground connection for the AC-link section of the CS4201. These pins should be isolated from analog ground currents. AVdd1, AVdd2 - Analog Supply Voltage, Pins 25 and 38 Analog supply voltage for the analog and mixed signal section of the CS4201 (AVdd1) as well as the headphone amplifier (AVdd2). These pins must be tied to the analog +5 V power supply. It is strongly recommended that +5 V be generated from a voltage regulator to ensure proper supply currents and noise immunity from the rest of the system. AVss1, AVss2 - Analog Ground, Pins 26 and 42 Ground connection for the analog, mixed signal, and substrate sections of the CS4201 (AVss1) as well as the headphone amplifier (AVss2). These pins should be isolated from digital ground currents.
62
DS483PP3
CS4201
13. PARAMETER AND TERM DEFINITIONS
AC '97 Specification Refers to the Audio Codec '97 Component Specification Ver 2.1 published by the Intel(R) Corporation [6]. AC '97 Controller or Controller Refers to the control chip which interfaces to the audio codec AC-link. This has been also called DC '97 for Digital Controller '97 [6]. AC '97 Registers or Codec Registers Refers to the 64-field register map defined in the AC '97 Specification. ADC Refers to a single Analog-to-Digital converter in the CS4201. "ADCs" refers to the stereo pair of Analog-to-Digital converters. The CS4201 ADCs have 18-bit resolution. Codec Refers to the chip containing the ADCs, DACs, and analog mixer. In this data sheet, the codec is the CS4201. DAC Refers to a single Digital-to-Analog converter in the CS4201. "DACs" refers to the stereo pair of Digital-to-Analog converters. The CS4201 DACs have 20-bit resolution. dB FS A dB FS is defined as dB relative to full-scale. The "A" indicates an A weighting filter was used. Differential Nonlinearity The worst case deviation from the ideal code width. Units in LSB. Dynamic Range (DR) DR is the ratio of the RMS full-scale signal level divided by the RMS sum of the noise floor, in the presence of a signal, available at any instant in time (no change in gain settings between measurements). Measured over a 20 Hz to 20 kHz bandwidth with units in dB FS A. FFT Fast Fourier Transform. Frequency Response (FR) FR is the deviation in signal level verses frequency. The 0 dB reference point is 1 kHz. The amplitude corner, Ac, lists the maximum deviation in amplitude above and below the 1 kHz reference point. The listed minimum and maximum frequencies are guaranteed to be within the Ac from minimum frequency to maximum frequency inclusive. Fs Sampling Frequency. Interchannel Gain Mismatch For the ADCs, the difference in input voltage to get an equal code on both channels. For the DACs, the difference in output voltages for each channel when both channels are fed the same code. Units are in dB. DS483PP3 63
CS4201
Interchannel Isolation The amount of 1 kHz signal present on the output of the grounded AC-coupled line input channel with 1 kHz, 0 dB, signal present on the other line input channel. Units are in dB. Line-level Refers to a consumer equipment compatible, voltage driven interface. The term implies a low driver impedance and a minimum 10 k load impedance. PATHS A-D: Analog in, through the ADCs, onto the serial link. D-A: Serial interface inputs through the DACs to the analog output. A-A: Analog in to Analog out (analog mixer). PC 99 Refers to the PC 99 System Design Guide published by the Microsoft(R) Corporation [7]. PC 2001 Refers to the PC 2001 System Design Guide published by the Microsoft(R) Corporation [8]. PLL Phase Lock Loop. Circuitry for generating a desired clock from an external clock source. Resolution The number of bits in the output words to the DACs, and in the input words to the ADCs. Signal to Noise Ratio (SNR) SNR, similar to DR, is the ratio of an arbitrary sinusoidal input signal to the RMS sum of the noise floor, in the presence of a signal. It is measured over a 20 Hz to 20 kHz bandwidth with units in dB. S/PDIF Sony/Phillips Digital Interface. This interface was established as a means of digitally interconnecting consumer audio equipment. The documentation for S/PDIF has been superseded by the IEC-958 consumer digital interface document. SRC Sample Rate Converter. Converts data derived at one sample rate to a differing sample rate. The CS4201 operates at a fixed sample frequency of 48 kHz. The internal sample rate converters are used to convert digital audio streams playing back at other frequencies to 48 kHz. Total Harmonic Distortion plus Noise (THD+N) THD+N is the ratio of the RMS sum of all non-fundamental frequency components, divided by the RMS full-scale signal level. It is tested using a -3 dB FS input signal and is measured over a 20 Hz to 20 kHz bandwidth with units in dB FS. 64 DS483PP3
+
+
17 16 13 VIDEO_L PHONE EAPD/SCLK 28 27 29 Vrefout REFFLT AFLT1 AFLT2 FLT3D FLTI GPIO0/LRCLK GPIO1/SDOUT SPDO/SDO2 47 45 ID0# ID1# 46 43 44 48 VIDEO_R MONO_OUT
37
+
DS483PP3
+12V C1
1 IN GND OUT 3
U1
MC78M05ACDT
+5VA
PC SPEAKER IN
0.1uF X7R +
2
R1
47K
J1
2
1
R2 4.7K C3 10uF ELEC C4 0.1uF X7R C5 0.1uF X7R C6 10uF ELEC
C2 2700pF X7R
2X1HDR-SN/PB AGND AGND C7 + 10uF ELEC +3.3VD
DGND
AGND
AUX IN
C10 0.1uF C12 + C8 0.1uF X7R C9 0.1uF X7R C11 0.1uF X7R
R3
6.8K
J2
R4
6.8K
14. REFERENCE DESIGN
4
3
2
R5
6.8K
1 26 42 25 38
10uF ELEC
R6
9 1
6.8K U2
4 7 DVss2 DVss1
4X1HDR-AU
AC LINK
AGND
AVss1
AVss2
AVdd1
AVdd2
DVdd2
DVdd1
PCI Audio Controller or ICH Controller
AGND C13
BIT_CLK 6
AGND 10uF ELEC R7 R8 47 47 + DGND
SDATA_OUT SDATA_IN 10 11 8 5
CD IN
CS4201
12 15 14 20 AUX_L CD_R CD_GND CD_L LINE_IN_R 31 35 36 LINE_IN_L MIC1 MIC2 LINE_OUT_R HPCFG LINE_OUT_L HP_OUT_C 40 HP_OUT_L 39 HP_OUT_R 41 AUX_R PC_BEEP SYNC RESET#
R9 C14 + 10uF ELEC
100K
J3
4 3
ABITCLK ASDOUT ASDIN ASYNC ARST#
2
1
R10 C16
18 24 23 21 22 19
100K
LINE OUT/ HEADPHONE JACK
C15 J4
4 3
220uF ELEC C17 R11 10K
4X1HDR-AU +
10uF ELEC
5
R12
100K
220uF ELEC C18 AGND 1uF ELEC
2 1
R13
10K PHONO-1/8
LINE IN
C19 + 10uF ELEC
AGND
J5
R14
6.8K
4
AGND
3
5
R15
6.8K
2 1
R16
32
6.8K +
C20
PHONO-1/8
10uF ELEC
30
S/PDIF OUT
4 3 XTL_OUT
J6
XTL_IN
R17
FLTO
6.8K
+5VD C23
33 34 1000pF NPO 1000pF NPO
2 2 3 1 5
C24
C21 2.2uF Z5U +5VA
C22 0.1uF X7R
C25 0.01uF X7R
C26 0.1uF C27 1000pF NPO 60 mil trace X7R
R18 8.2K
6
MIC IN
AGND C28 0.1uF X7R
AGND
AGND
TOTX-173
J7
R19
2.2K
R21
1.5K
4
3
DGND Y1 GND_TIE
DGND
5 2
R20
100
1
+
PHONO-1/8
24.576 MHz (50 PPM)
DGND Tie at one point C32 22pF NPO C33 22pF NPO only under the codec
AGND
MIC IN -3 dB roll-off frequencies at 60 Hz. and 16 KHz in accordance with PC-99
C30 10uF ELEC
C29 0.1uF X7R
AGND
AGND
AGND
DGND
DGND
CS4201
Figure 29. CS4201 Reference Design
65
CS4201
15. REFERENCES
1) Cirrus Logic, Audio Quality Measurement Specification, Version 1.0, 1997 http://www.cirrus.com/products/papers/meas/meas.html 2) Cirrus Logic, AN18: Layout and Design Rules for Data Converters and Other Mixed Signal Devices, Version 6.0, February 1998 3) Cirrus Logic, AN22: Overview of Digital Audio Interface Data Structures, Version 2.0, February 1998 4) Cirrus Logic, AN134: AES and S/PDIF Recommended Transformers, Version 2, April 1999 5) Cirrus Logic, AN165: CS4297A/CS4299 EMI Reduction Techniques, Version 1.0, September 1999 6) Intel(R), Audio Codec '97 Component Specification, Revision 2.1, May 1998 http://developer.intel.com/ial/scalableplatforms/audio/index.htm 7) Microsoft(R), PC 99 System Design Guide, Version 1.0, July 1999 http://www.microsoft.com/hwdev/desguid/ 8) Microsoft(R), PC 2001 System Design Guide, Version 0.9, August 2000 http://www.pcdesguide.org/pc2001/default.htm 9) Intel(R) 82801AA (ICH) and 82801AB (ICH0) I/O Controller Hub, June 1999 http://developer.intel.com/design/chipsets/datashts/290655.htm4
66
DS483PP3
CS4201
16. PACKAGE DIMENSIONS
48L LQFP PACKAGE DRAWING
E E1
D D1
1
e
B A A1
L
INCHES NOM 0.055 0.004 0.009 0.354 0.28 0.354 0.28 0.020 0.24 4 MILLIMETERS NOM 1.40 0.10 0.22 9.0 BSC 7.0 BSC 9.0 BSC 7.0 BSC 0.50 BSC 0.60 4
MIN --0.002 0.007 0.343 0.272 0.343 0.272 0.016 0.018 0.000 * Nominal pin pitch is 0.50 mm Controlling dimension is mm. JEDEC Designation: MS022
DIM A A1 B D D1 E E1 e* L
MAX 0.063 0.006 0.011 0.366 0.280 0.366 0.280 0.024 0.030 7.000
MIN --0.05 0.17 8.70 6.90 8.70 6.90 0.40 0.45 0.00
MAX 1.60 0.15 0.27 9.30 7.10 9.30 7.10 0.60 0.75 7.00
DS483PP3
67


▲Up To Search▲   

 
Price & Availability of CS4201

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X